From e6b1e8029c534a9c93bac594c634e934aaccabc1 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 10 Apr 2023 03:18:50 +0300 Subject: [PATCH] add missed regex replacement rule --- library/robots.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/robots.php b/library/robots.php index 796cfaf..c36c593 100644 --- a/library/robots.php +++ b/library/robots.php @@ -86,11 +86,13 @@ class Robots { return str_replace( [ '*', - '?' + '?', + '+' ], [ '.*', - '\?' + '\?', + '\+' ], $string );