[Pkg-javascript-commits] [node-acorn-jsx] 242/484: Simplified newline check in strings.
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit 67615ffd4124e2573286b91c4efa6f7318397802
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Sat Jul 26 09:44:06 2014 +0300
Simplified newline check in strings.
---
acorn.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/acorn.js b/acorn.js
index e2ec0f6..f62c677 100644
--- a/acorn.js
+++ b/acorn.js
@@ -975,7 +975,7 @@
}
} else {
++tokPos;
- if (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) {
+ if (newline.test(String.fromCharCode(ch))) {
if (inTemplate) {
if (ch === 13 && input.charCodeAt(tokPos) === 10) {
++tokPos;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list