[Pkg-javascript-commits] [node-buble] 03/03: Fix unescape characters

Julien Puydt julien.puydt at laposte.net
Wed Sep 20 08:00:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-buble.

commit 9515162d70980c091f557d7f71cb13bf8887e4d7
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Tue Sep 19 21:44:23 2017 +0200

    Fix unescape characters
---
 debian/rules | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/rules b/debian/rules
index 93920c2..f2cfc5b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@ TARGETS = $(subst src, dist, $(SOURCES))
 
 COMPILE_MODULES = compile-modules convert -f commonjs
 
+ESCAPER = s/`\([^`]*\)`\([^`]*\)`\([^`]*\)`/`\1\\`\2\\`\3`/g
+
 .PHONY: dist
 
 %.js:
@@ -25,6 +27,11 @@ override_dh_auto_build: dist $(TARGETS)
 	# the next one moves the requires after the exports to break a loop
 	sed -i dist/program/wrap.js -e '2{h;d};$${p;g}'
 	sed -i bin/runBuble.js -e "s|../dist/buble.deps.js|../dist/index.js|"
+	# the next ones fix issues with unescaped characters
+	sed -i dist/program/types/ClassBody.js -e '123$(ESCAPER)'
+	sed -i dist/program/types/ClassBody.js -e '157$(ESCAPER)'
+	sed -i dist/program/types/ClassBody.js -e '162$(ESCAPER)'
+	sed -i dist/program/types/ForStatement.js -e '31$(ESCAPER)'
 
 dist:
 	mkdir -p dist/program/types/shared dist/utils

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-buble.git



More information about the Pkg-javascript-commits mailing list