Skip to content

Commit

Permalink
fix regexps
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 18, 2012
1 parent b5b15a5 commit d72c0fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/jog
Expand Up @@ -16,7 +16,7 @@ var selects = [];
// --map

program.on('map', function(val){
if (/^[\w.]+$/.test(val)) val = '_.' + val;
if (/^[a-z\d.]+$/i.test(val)) val = '_.' + val;
maps.push(new Function('_', 'return ' + val));
});

Expand All @@ -35,7 +35,7 @@ program.on('type', function(val){
// --select

program.on('select', function(val){
if (/^[\w.]+$/.test(val)) val = '_.' + val;
if (/^[a-z\d.]+$/i.test(val)) val = '_.' + val;
selects.push(new Function('_', 'return ' + val));
});

Expand Down

0 comments on commit d72c0fa

Please sign in to comment.