Skip to content

Conversation

vmaurin
Copy link
Contributor

@vmaurin vmaurin commented Jun 25, 2021

The previous regexp was relying a lot on | leading to stackoverflow
errors for long URIs (as Java Pattern class is using recursion a lot). I
have reworked the regexp from the RFC directly, taking some shortcut to
mostly validate what are the allowed or not allowed char in the
different part of the URI

refs #413

The previous regexp was relying a lot on `|` leading to stackoverflow
errors for long URIs (as Java Pattern class is using recursion a lot). I
have reworked the regexp from the RFC directly, taking some shortcut to
mostly validate what are the allowed or not allowed char in the
different part of the URI

refs networknt#413
@stevehu stevehu merged commit 00923c2 into networknt:master Jun 25, 2021
@stevehu
Copy link
Contributor

stevehu commented Jun 25, 2021

Thanks a lot for the effort to optimize it. Let me know if you need a quick release.

@stevehu
Copy link
Contributor

stevehu commented Jul 2, 2021

A new release is published. Thanks.

https://github.com/networknt/json-schema-validator/releases/tag/1.0.56

@vmaurin
Copy link
Contributor Author

vmaurin commented Jul 2, 2021

Thank you @stevehu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants