Skip to content

Commit e513205

Browse files
committed
Fix microsoft#44032 - make php grammar regex case-insensitive
1 parent eb3d867 commit e513205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/php/build/update-grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function fixBadRegex(grammar) {
2727
if (scopeResolution) {
2828
const match = scopeResolution.patterns[0].match;
2929
if (match === '(?i)([a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)') {
30-
scopeResolution.patterns[0].match = '([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A_Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)';
30+
scopeResolution.patterns[0].match = '([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A-Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)';
3131
return;
3232
}
3333
}

0 commit comments

Comments
 (0)