ported from UXP: Escape '!' to '\041' in posix strings ($'...') (d00f80f1)

This commit is contained in:
2022-04-01 16:41:29 +08:00
parent 2f7e663e80
commit 193c500398
+1
View File
@@ -379,6 +379,7 @@ const CurlUtils = {
.replace(/\'/g, "\\\'")
.replace(/\n/g, "\\n")
.replace(/\r/g, "\\r")
.replace(/!/g, "\\041")
.replace(/[^\x20-\x7E]/g, escapeCharacter) + "'";
}