Add missing semicolons in #104

Signed-off-by: Tyr Heimdal <tyr.heimdal@warning.no>
This commit is contained in:
Tyr Heimdal
2023-01-23 20:25:41 +01:00
parent 24d4b84232
commit 3e08d014aa

View File

@@ -953,8 +953,8 @@ define([
*/
const unicodeToString = (text) => {
const result = text.replace(/\\u[\dA-F]{4}/gi, (match) => String.fromCharCode(parseInt(match.replace(/\\u/g, ''), 16)))
return result.substring(0, 2) == "u'" ? result.substring(2, result.length - 1) : result
}
return result.substring(0, 2) == "u'" ? result.substring(2, result.length - 1) : result;
};
/**
* polyfill for "passive" events