Some fixes and new nodes names added

This commit is contained in:
barsdeveloper
2023-05-22 22:15:08 +02:00
parent fa35c4860c
commit 5dfa8aff1b
12 changed files with 56 additions and 20 deletions

View File

@@ -349,8 +349,8 @@ export default class Utility {
/** @param {String} value */
static unescapeString(value) {
return value
.replaceAll("\\t", "\t") // Replace tab with \t
.replaceAll("\\n", "\n") // Replace newline with \n
.replaceAll(new RegExp(Configuration.unescapedBackslash.source + "t", "g"), "\t") // Replace tab with \t
.replaceAll(new RegExp(Configuration.unescapedBackslash.source + "n", "g"), "\n") // Replace newline with \n
.replaceAll(new RegExp(`\\\\(${Configuration.stringEscapedCharacters.source})`, "g"), "$1")
}