W1zzard
Well-known member
- Affected version
- 2.0.2
When using xf-addon:build-release with a js file in _files that has invalid unicode characters, the minifier will die.
The error message is just:
Maybe this could be improved to point at the actual issue
Problem was in this code, probably due to the currency symbols
The error message is just:
Code:
[GuzzleHttp\Exception\ParseException]
Unable to parse JSON data: JSON_ERROR_SYNTAX - Syntax error, malformed JSON
Maybe this could be improved to point at the actual issue
Problem was in this code, probably due to the currency symbols
Code:
ts.addParser({
id: "currency",
is: function (s) {
return /^[£$€?.]/.test(s);
}, format: function (s) {
return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g), ""));
}, type: "numeric"
});