Skip to content

Commit

Permalink
Merge pull request #86 from tedious/revert-84-fix/83
Browse files Browse the repository at this point in the history
Revert "Fix regular expressions breaking after arithmetic operations"
  • Loading branch information
tedivm authored Jun 28, 2019
2 parents d9b5172 + 26b811c commit 566e0c7
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 566e0c7

Please sign in to comment.