From 732facc6bdf395730bed39f1bb7cb93b6d2e6bfe Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Mon, 28 Oct 2013 22:04:01 +0100 Subject: [PATCH] Combine concatenated strings on script minify. If there are string concatenated like "foo" + "bar", combine them to "foobar". --- src/js2h.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js2h.sh b/src/js2h.sh index 0aa6c04..90ed16a 100755 --- a/src/js2h.sh +++ b/src/js2h.sh @@ -6,6 +6,7 @@ cat $1 | \ sed -e 's:/\*[^*]*\*/::g' \ -e 's|[ ]\{2,\}| |g' \ -e "s|[ ]\{0,\}\([-!?<>:=(){};+\&\"',\|]\)[ ]\{0,\}|\1|g" \ + -e 's|"+"||g' \ -e 's|\\|\\\\|g' \ -e 's|"|\\"|g' echo '"' -- 2.20.1