networknt / json-schema-validator

A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12
Apache License 2.0
800 stars 320 forks source link

Detect invalid escape for ecmascript #1049

Closed justin-tay closed 1 month ago

justin-tay commented 1 month ago

This fixes the test failure from the JSON Schema Test Suite in optional/ecmascript-regex.json as joni does not detect invalid escapes.

This makes the following changes

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.74%. Comparing base (48ca3c2) to head (e11488a). Report is 19 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1049 +/- ## ============================================ - Coverage 78.90% 78.74% -0.16% - Complexity 1965 2033 +68 ============================================ Files 172 191 +19 Lines 6352 6596 +244 Branches 1255 1260 +5 ============================================ + Hits 5012 5194 +182 - Misses 867 927 +60 - Partials 473 475 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.