[Pkg-javascript-commits] [node-shell-quote] 86/137: remove the broken special case

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 19:19:42 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 f9a0ee574f9d5e5d5b382f55da960c23eb7d44c5
Author: James Halliday <mail at substack.net>
Date:   Mon Jun 24 05:00:37 2013 -0700

    remove the broken special case
---
 index.js | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/index.js b/index.js
index 3048e0a..604c51a 100644
--- a/index.js
+++ b/index.js
@@ -60,13 +60,6 @@ function parse (s, env) {
                 .replace(/\\(["'\\$`(){}!#&*|])/g, '$1')
             ;
         }
-        else if (/^([^"']*)"/.test(s) && typeof env === 'function') {
-            return s.replace(/^"|"$/g, '')
-                .replace(/(^|[^\\])\$(\w+|[*@#?$!0_-])/g, getVar)
-                .replace(/(^|[^\\])\${(\w+|[*@#?$!0_-])}/g, getVar)
-                .replace(/\\([ "'\\$`(){}!#&*|])/g, '$1')
-            ;
-        }
         else if (/^"/.test(s)) {
             return s.replace(/^"|"$/g, '')
                 .replace(/(^|[^\\])\$(\w+|[*@#?$!0_-])/g, getVar)

-- 
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