Skip to content

Commit

Permalink
[Performance][Php55] Remove regex replace e on RegexMatcher (#4974)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 10, 2023
1 parent 3942c13 commit e4eec89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/Php55/RegexMatcher.php
Expand Up @@ -87,7 +87,7 @@ private function resolveModifiers(string $modifiersCandidate): string

private function createPatternWithoutE(string $pattern, string $delimiter, string $modifiers): string
{
$modifiersWithoutE = Strings::replace($modifiers, '#e#');
$modifiersWithoutE = str_replace('e', '', $modifiers);

return Strings::before($pattern, $delimiter, -1) . $delimiter . $modifiersWithoutE;
}
Expand Down

0 comments on commit e4eec89

Please sign in to comment.