'Unescape string' operation now works with capitalised hex
This commit is contained in:
parent
1bff490fa4
commit
566adbcda5
@ -201,7 +201,7 @@ const Utils = {
|
|||||||
* Utils.parseEscapedChars("\\n");
|
* Utils.parseEscapedChars("\\n");
|
||||||
*/
|
*/
|
||||||
parseEscapedChars: function(str) {
|
parseEscapedChars: function(str) {
|
||||||
return str.replace(/(\\)?\\([nrtbf]|x[\da-f]{2})/g, function(m, a, b) {
|
return str.replace(/(\\)?\\([nrtbf]|x[\da-fA-F]{2})/g, function(m, a, b) {
|
||||||
if (a === "\\") return "\\"+b;
|
if (a === "\\") return "\\"+b;
|
||||||
switch (b[0]) {
|
switch (b[0]) {
|
||||||
case "n":
|
case "n":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user