Java: Fix for multiple parse mode flags.

This commit is contained in:
Geoffrey White
2023-07-20 11:41:10 +01:00
parent 32c10885d4
commit 369f88beda
2 changed files with 14 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ class ExpRedosTest {
"(?s)(.|\\n)*!", // $ hasExpRedos
// NOT GOOD; attack: "\n".repeat(100) + "."
"(?is)(.|\\n)*!", // $ MISSING: hasExpRedos
"(?is)(.|\\n)*!", // $ hasExpRedos
// GOOD
"([\\w.]+)*",