Skip to content

Commit

Permalink
Merge pull request #7 from iksaku/fix/preg_unsupported_modifier_warning
Browse files Browse the repository at this point in the history
fix(parser): Remove PHP warnings on unknown modifier '\'
  • Loading branch information
toonvandenbos authored Aug 11, 2021
2 parents 15deb4d + c51bd7d commit c3d25ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function getCurrencyPattern(Currency $currency, $symbol = null)
*/
protected function getEscapedPatternString($search)
{
$escaped = ['(',')','.',':','^','$','[',']','?','!','+','=','*',',','{','}','\\','-'];
$escaped = ['(',')','.',':','^','$','[',']','?','!','+','=','*',',','{','}','/','\\','-'];

return implode('', array_map(function($char) use ($escaped) {
if(!in_array($char, $escaped)) return $char;
Expand Down

0 comments on commit c3d25ca

Please sign in to comment.