Closed frrakn closed 6 years ago
The Meteor SimpleSchema package is no longer maintained other than critical fixes to keep it running with each latest Meteor release. Closing non-critical issues in this repo. Anyone who cares about this may do one or more of the following:
https://stackoverflow.com/questions/2630418/javascript-regex-returning-true-then-false-then-true-etc
Type checks in
simple-schema-validation.js
line 18 and 23 useRegExp.prototype.test
. If you run the code below:You can see that if you pass in a global regex to the schema, validation can alternate between true and false because javascript's global regexs are stateful