Skip to content

Commit

Permalink
Merge 9130c6b into 62dac3b
Browse files Browse the repository at this point in the history
  • Loading branch information
merty committed Mar 26, 2018
2 parents 62dac3b + 9130c6b commit 5a9c6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JS.php
Expand Up @@ -238,7 +238,7 @@ protected function extractRegex()
// closing the regex)
// then also ignore bare `/` inside `[]`, where they don't need to be
// escaped: anything inside `[]` can be ignored safely
$pattern = '\\/(?:[^\\[\\/\\\\\n\r]+|(?:\\\\.)+|(?:\\[(?:[^\\]\\\\\n\r]+|(?:\\\\.)+)+\\])+)++\\/[gimy]*';
$pattern = '\\/(?:[^\\[\\/\\\\\n\r]+|(?:\\\\.)+|(?:\\[(?:[^\\]\\\\\n\r]+|(?:\\\\.)+)+\\])+)++\\/[gimuy]*';

// a regular expression can only be followed by a few operators or some
// of the RegExp methods (a `\` followed by a variable or value is
Expand Down

0 comments on commit 5a9c6fe

Please sign in to comment.