milesj / decoda

A lightweight lexical string parser for BBCode styled markup.
MIT License
196 stars 52 forks source link

Reset errors in reset() method #65

Closed naNuke closed 10 years ago

naNuke commented 10 years ago

Hello, is there a reason why reset() method is not cleaning errors from previous parse?

Fixed it by extending decoda and just adding php $this->_errors = array(); into reset() method. And I don't see a reason why it would be needed to check errors after all parses as there is no indication which parse contained the errors so reseting it and checking errors after each parse individually makes more sense imo.

milesj commented 10 years ago

No reason, just an oversight. Thanks for the report.