Skip to content

Commit

Permalink
use createDescriptor on Parser.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
nomocas committed Sep 15, 2015
1 parent 763cec7 commit 2b0b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
return exec(string, rule, descriptor, this);
},
parse: function(string, rule) {
var descriptor = {};
var descriptor = this.createDescriptor ? this.createDescriptor() : {};
var ok = this.exec(string, descriptor, rule);
if (ok === false || ok.length > 0)
return false;
Expand Down

0 comments on commit 2b0b77c

Please sign in to comment.