TnT
Active member
- Affected version
- 2.1.0 Release Candidate 1
This line:
in file src/XF/Service/AddOn/JsMinifier.php breaks js files beginning with "a-f0-9"
Reproducer: Minify a file with following content:
the output will be:
which is broken js
I think he has the same problem: https://xenforo.com/community/threa...empty-result-provided-by-the-compiler.146870/
PHP:
$result = preg_replace('/^[a-f0-9]+/', '', $result);
Reproducer: Minify a file with following content:
JavaScript:
console.log("test");
JavaScript:
onsole.log("test");
I think he has the same problem: https://xenforo.com/community/threa...empty-result-provided-by-the-compiler.146870/