lukejagodzinski / meteor-astronomy-validators

https://atmospherejs.com/jagi/astronomy-validators
MIT License
11 stars 13 forks source link

Errors are returned appearing unescaped #28

Closed andykingking closed 9 years ago

andykingking commented 9 years ago

Validation errors are returned appearing unescaped. For example:

Original Validators.gte(10, "Requires at least 10 characters") Output "Requires at least 10 characters"

Original Validators.lte(128, 'The "field" field requires at most "128" characters') Output "The \"field\" field requires at most \"128\" characters"

lukejagodzinski commented 9 years ago

I've checked it and everything works correctly. Could you create reproduction repository? It would probably show the error you are making.

andykingking commented 9 years ago

You're right, it was my mistake. That's what I get for not reading the docs thoroughly.

Out of interest, I was using particular properties on the class instance to retrieve errors.