Skip to content

Commit b7a5b0f

Browse files
committed
fixed problem with renamed option flags (especially case insensitive flag)
1 parent 9517843 commit b7a5b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/test.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
8383
int flags = 0;
8484
if (options.contains("canon")) { flags |= Pattern.CANON_EQ; }
85-
if (options.contains("insensitive")) { flags |= Pattern.CASE_INSENSITIVE; }
86-
if (options.contains("comments")) { flags |= Pattern.COMMENTS; }
85+
if (options.contains("ignorecase")) { flags |= Pattern.CASE_INSENSITIVE; }
86+
if (options.contains("comment")) { flags |= Pattern.COMMENTS; }
8787
if (options.contains("dotall")) { flags |= Pattern.DOTALL; }
8888
if (options.contains("multiline")) { flags |= Pattern.MULTILINE; }
8989
if (options.contains("unicode")) { flags |= Pattern.UNICODE_CASE; }

0 commit comments

Comments
 (0)