feat(isRFC3339): Disallow prepended and appended strings to RFC 3339 date-time by jmacmahon · Pull Request #1654 · validatorjs/validator.js
Fixes #1653
Adds test cases for invalid RFC 3339 strings as valid date-time strings, but prepended and appended with the word "nonsense".
Also adds equivalent test cases for ISO 8601 validator (but did not change the implementation as it was already OK).
Checklist
- PR contains only changes related; no stray files, etc.
- README updated (where applicable)
- Tests written (where applicable)