[Pkg-javascript-commits] [node-shell-quote] 22/137: now just 2 tests failing with a subtle regex reordering
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:19:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-shell-quote.
commit 5448a02d356722ec8ef57db2e075e10566e2dcdb
Author: James Halliday <mail at substack.net>
Date: Sun Apr 14 20:19:35 2013 -0700
now just 2 tests failing with a subtle regex reordering
---
index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/index.js b/index.js
index cb4746a..b6c9e3a 100644
--- a/index.js
+++ b/index.js
@@ -31,9 +31,9 @@ exports.parse = function (s, env) {
function interpolate (s) {
return s
- .replace(/\\([ "'\\$`(){}!#&*|])/g, '$1')
.replace(/(^|[^\\])\$(\w+)/g, getVar)
.replace(/(^|[^\\])\${(\w+)}/g, getVar)
+ .replace(/\\([ "'\\$`(){}!#&*|])/g, '$1')
;
}
function getVar (_, pre, key) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-shell-quote.git
More information about the Pkg-javascript-commits
mailing list