forked from hummypkg/webif
1
0
Fork 0

Fix escaping for literal \ also

This commit is contained in:
prpr 2024-01-26 09:50:21 +00:00
parent f07f2486ee
commit 4c4fbe6a2b
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ proc ::js::_unescape {str} {
}
proc ::js::escape {str} {
set re1 {[\;\[\]\{\}]}
set re1 {[\;\[\]\{\}\\]}
set re2 {[^A-Za-z0-9@*_+./-]+}
regsub -all -- $re1 $str {\\&} str1
regsub -all -- $re2 $str1 \