Skip to content

Commit

Permalink
Revert "Fix regular expressions breaking after arithmetic operations"
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm authored Jun 28, 2019
1 parent d9b5172 commit 26b811c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion src/JShrink/Minifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ protected function loop()
// do reg check of doom
$this->b = $this->getReal();

if (($this->b == '/' && strpos('(,=:[!&|?*+-%', $this->a) !== false)) {
if (($this->b == '/' && strpos('(,=:[!&|?', $this->a) !== false)) {
$this->saveRegex();
}
}
Expand Down
10 changes: 0 additions & 10 deletions tests/Resources/jshrink/input/regex-arithmetics.js

This file was deleted.

1 change: 0 additions & 1 deletion tests/Resources/jshrink/output/regex-arithmetics.js

This file was deleted.

0 comments on commit 26b811c

Please sign in to comment.