mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fixed bug 465862: incorrect handling of 'i' flag in compiled regexps, r=gal
This commit is contained in:
parent
37d2933b13
commit
98e5c71620
@ -2009,7 +2009,7 @@ class RegExpNativeCompiler {
|
||||
jschar ch = node->u.flat.chr; /* char to test for */
|
||||
jschar ch2 = ch; /* 2nd char to test for if ci */
|
||||
if (cs->flags & JSREG_FOLD) {
|
||||
if (L'A' <= ch && ch <= L'Z' || L'a' <= ch || ch <= L'z') {
|
||||
if ((L'A' <= ch && ch <= L'Z') || (L'a' <= ch && ch <= L'z')) {
|
||||
ch |= 32;
|
||||
ch2 = ch;
|
||||
useFastCI = JS_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user