Skip to content

Commit ea559e7

Browse files
TrianguloYchris48s
andauthored
New experimental [DynamicRegex] badge (#10985)
* First implementation * block ReDoS attack by using a vm to timeout the regex operations * added tests * Use re2 instead of regex And add configurable noMatch value * Added 'experimental' note * Reorder tests + include ReDoS * Remove Service suffix * validate flags * remove noMatch and throw InvalidResponse instead * throw InvalidParameter for SyntaxError only + test * extra _request parameters * concise title * unsupported -> unstructured * improve replacement string documentation * extra cleanup * validate flags before fetching url + extract transform and validate code * spec.js instead of tester.js tests * restore service tests and fix refactor issues * remove obsolete noMatch * improve redos tests based on pr feedback * only allow flags that are documented and supported * slight flags improvement --------- Co-authored-by: chris48s <[email protected]>
1 parent 945d1ab commit ea559e7

File tree

5 files changed

+1152
-61
lines changed

5 files changed

+1152
-61
lines changed

0 commit comments

Comments
 (0)