ekalinin / robots.js

Parser for robots.txt for node.js
MIT License
66 stars 21 forks source link

Fix Rule.appliesTo to return true when the rule has end_char ($) but no wildcard (*), and path === url + end_char. #20

Closed valabau closed 9 years ago

valabau commented 9 years ago

The strict end pattern was only matched when the text had a wildcard. This pull requests adds the case where we have strict end but no wildcard.

ekalinin commented 9 years ago

Hi @valabau Thanks for patch. But would you be able to add some tests?