Skip to content

Commit

Permalink
add the special vars to the replace regex but the chunker breaks on them
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed May 13, 2013
1 parent 728862a commit d1ff82a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ exports.parse = function parse (s, env) {
else if (/^"/.test(s)) {
return s
.replace(/^"|"$/g, '')
.replace(/(^|[^\\])\$(\w+)/g, getVar)
.replace(/(^|[^\\])\${(\w+)}/g, getVar)
.replace(/(^|[^\\])\$(\w+|[*@#?$!0_-])/g, getVar)
.replace(/(^|[^\\])\${(\w+|[*@#?$!0_-])}/g, getVar)
.replace(/\\([ "'\\$`(){}!#&*|])/g, '$1')
;
}
Expand Down

0 comments on commit d1ff82a

Please sign in to comment.