From e51320551dd5ee652b68d3f2a3009dce7a94f6d3 Mon Sep 17 00:00:00 2001 From: Matheus Salmi Date: Thu, 22 Feb 2018 01:04:51 -0300 Subject: [PATCH] Fix #44032 - make php grammar regex case-insensitive --- extensions/php/build/update-grammar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/php/build/update-grammar.js b/extensions/php/build/update-grammar.js index 94b73aa7354..22e0a05d988 100644 --- a/extensions/php/build/update-grammar.js +++ b/extensions/php/build/update-grammar.js @@ -27,7 +27,7 @@ function fixBadRegex(grammar) { if (scopeResolution) { const match = scopeResolution.patterns[0].match; if (match === '(?i)([a-z_\\x{7f}-\\x{7fffffff}\\\\][a-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)') { - scopeResolution.patterns[0].match = '([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A_Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)'; + scopeResolution.patterns[0].match = '([A-Za-z_\\x{7f}-\\x{7fffffff}\\\\][A-Za-z0-9_\\x{7f}-\\x{7fffffff}\\\\]*)(?=\\s*::)'; return; } }