provejs-jquery icon indicating copy to clipboard operation
provejs-jquery copied to clipboard

$.fn.decorateErrors can receive errors format from from provejs-express

Open GreenRaccoon23 opened this issue 6 years ago • 0 comments

Currently, $.fn.decorateErrors expects the errors object in the format {'': ''}, where the value for each key is a string. provejs-express sets the errors object in the format {'': [''...]}, where the value for each key is an array of strings.

This pull request allows the errors object to be in either format so that it can support provejs-express.

The commits from 2018-02-23 are already in the master branch of provejs-jquery, so you can ignore them. I'm not sure why git decided to include them in the pull request.

GreenRaccoon23 avatar Feb 22 '19 19:02 GreenRaccoon23