Skip to content

Commit 566e0c7

Browse files
authored
Merge pull request #86 from tedious/revert-84-fix/83
Revert "Fix regular expressions breaking after arithmetic operations"
2 parents d9b5172 + 26b811c commit 566e0c7

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/JShrink/Minifier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ protected function loop()
243243
// do reg check of doom
244244
$this->b = $this->getReal();
245245

246-
if (($this->b == '/' && strpos('(,=:[!&|?*+-%', $this->a) !== false)) {
246+
if (($this->b == '/' && strpos('(,=:[!&|?', $this->a) !== false)) {
247247
$this->saveRegex();
248248
}
249249
}

tests/Resources/jshrink/input/regex-arithmetics.js

-10
This file was deleted.

tests/Resources/jshrink/output/regex-arithmetics.js

-1
This file was deleted.

0 commit comments

Comments
 (0)