Comparing version 0.0.1-5 to 0.0.1-6
@@ -199,3 +199,3 @@ (function() { | ||
RobotsTxt.prototype.parse = function(txt) { | ||
var currUserAgentGroup, evaluate, line, lineA, myGateKeeper, _i, _len; | ||
var currUserAgentGroup, evaluate, i, line, lineA, myGateKeeper, _i, _len; | ||
if (txt == null) { | ||
@@ -207,3 +207,3 @@ txt = txt; | ||
currUserAgentGroup = false; | ||
evaluate = __bind(function(line) { | ||
evaluate = __bind(function(line, nr) { | ||
var kvA, regExStr, rx, url; | ||
@@ -253,2 +253,3 @@ line = _.trim(line); | ||
line: line, | ||
linenumber: nr, | ||
priority: kvA[1].length, | ||
@@ -275,5 +276,6 @@ type: kvA[0], | ||
}, this); | ||
i = 0; | ||
for (_i = 0, _len = lineA.length; _i < _len; _i++) { | ||
line = lineA[_i]; | ||
evaluate(line); | ||
evaluate(line, ++i); | ||
} | ||
@@ -280,0 +282,0 @@ if (myGateKeeper) { |
@@ -19,3 +19,3 @@ { | ||
"main" : "./index.js", | ||
"version" : "0.0.1-5" | ||
"version" : "0.0.1-6" | ||
} |
Sorry, the diff of this file is not supported yet
23498
335