diff --git a/src/Repositories/RegexRepository.php b/src/Repositories/RegexRepository.php index b1f1507..501860b 100644 --- a/src/Repositories/RegexRepository.php +++ b/src/Repositories/RegexRepository.php @@ -13,12 +13,12 @@ public function __construct( public static function checkAndSanitize(string $regex, string $replace, string $content, int &$hits = 0): string { - return preg_replace("~$regex~i", $replace, $content, -1, $hits); + return preg_replace("~$regex~Si", $replace, $content, -1, $hits); } public static function check(string $regex, string $content): int { - return preg_match_all("~$regex~i", $content); + return preg_match_all("~$regex~Si", $content); } public function getRegexCollection(): Collection