refactors unicode character conversion
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user