From 29ed931bb06ace08fba2a96e02e85c42ae2fa062 Mon Sep 17 00:00:00 2001 From: Sam ONeill Date: Thu, 10 Feb 2022 22:16:40 +1300 Subject: [PATCH] refactors unicode character conversion --- js/app/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app/util.js b/js/app/util.js index 9c6c8685..6be9f832 100644 --- a/js/app/util.js +++ b/js/app/util.js @@ -953,7 +953,7 @@ 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 } /**