From: Daniel Carl Date: Fri, 29 Mar 2013 23:04:06 +0000 (+0100) Subject: Escape back-slashes in js2h.sh helper script. X-Git-Url: https://git.owens.tech/assets/lich_lifts_title_slice.png/assets/lich_lifts_title_slice.png/git?a=commitdiff_plain;h=a541bfdf30ab631227d0e8fe624916abf0568ec6;p=vimb.git Escape back-slashes in js2h.sh helper script. --- diff --git a/src/js2h.sh b/src/js2h.sh index 80ce526..db23784 100755 --- a/src/js2h.sh +++ b/src/js2h.sh @@ -8,5 +8,6 @@ cat $1 | \ -e "s|^//.*$||" \ -e "s| \([-?<>:=(){};+\&\"',\|]\)|\1|g" \ -e "s|\([-?<>:=(){};+\&\"',\|]\) |\1|g" \ + -e 's|\\|\\\\|g' \ -e 's|"|\\"|g' echo -n "\"\n"