Skip to content

Commit

Permalink
Merge pull request #85 from kudmni/patch-2
Browse files Browse the repository at this point in the history
Исправит ошибку проверки правила
  • Loading branch information
JanPetterMG authored Sep 12, 2020
2 parents 7ff08da + 572269b commit ac41590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/robotstxtparser.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ private function checkBasicRule($rule, $path)
*/
protected function prepareRegexRule($value)
{
$escape = ['$' => '\$', '?' => '\?', '.' => '\.', '*' => '.*'];
$escape = ['$' => '\$', '?' => '\?', '.' => '\.', '*' => '.*', '[' => '\[', ']' => '\]'];
foreach ($escape as $search => $replace) {
$value = str_replace($search, $replace, $value);
}
Expand Down

0 comments on commit ac41590

Please sign in to comment.