Skip to content

Commit

Permalink
change wildcard pattern to $label
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainpolletvillard committed Oct 14, 2015
1 parent 3421fb7 commit fd122fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rewrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function clone(obj) {
}

function isWildcard(node) {
return node.type == "Identifier" && /^[a-z]$/.test(node.name);
return node.type == "Identifier" && /^\$[a-z]+$/.test(node.name); // FORK: https://github.com/rdio/jsfmt/issues/167
}

function isSpreadWildcard(node) {
Expand Down

0 comments on commit fd122fe

Please sign in to comment.