From 50486e14460521947563fa4dd2e156edcd54ce4e Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 12 Nov 2024 11:10:56 +0100 Subject: [PATCH] replace preg_match by a custom expression --- src/TestPattern.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TestPattern.php b/src/TestPattern.php index f496ac4..c5d367e 100644 --- a/src/TestPattern.php +++ b/src/TestPattern.php @@ -10,7 +10,7 @@ public function __construct($name) { } - private function compile(string $pattern, string $subject): bool + private function compile(string $pattern, string $subject): string { return <<