Skip to content

Commit

Permalink
remove the broken special case
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 24, 2013
1 parent 9fb2096 commit f9a0ee5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9a0ee5

Please sign in to comment.