Closed altego371 closed 1 year ago
WONT_FIX
this package uses golang regexp package which has this limitation.
https://github.com/google/re2/wiki/Syntax clearly says:
Implementation restriction: The counting forms x{n,m}, x{n,}, and x{n} reject forms
that create a minimum or maximum repetition count above 1000.
Unlimited repetitions are not subject to this restriction.
The package returns a false positive error for a valid regex pattern in a schema. Pattern
.{1,1024}$
is valid, butCompileString
method returns an error. Empirically established that an error is returned for any value greater than 1000. For a value less than or equal to 1000, the error does not occur. The package version is 5.2.0 The code below shows the bug