mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-30 04:29:15 +01:00
Fix regex
This commit is contained in:
parent
17d1e738fa
commit
e926efd62e
@ -67,7 +67,7 @@ class Emulative extends \PhpParser\Lexer
|
||||
return false;
|
||||
}
|
||||
|
||||
if (preg_match('/\?\?|<=>|yield[ \n\r\t]+from/', $code)) {
|
||||
if (preg_match('(\?\?|<=>|yield[ \n\r\t]+from)', $code)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ class Emulative extends \PhpParser\Lexer
|
||||
return false;
|
||||
}
|
||||
|
||||
return preg_match('/\.\.\.|(?<!/)\*\*(?!/)/', $code);
|
||||
return preg_match('(\.\.\.|(?<!/)\*\*(?!/))', $code);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user