From 82a20ff72c2217e9d52ad237e839695a824692b9 Mon Sep 17 00:00:00 2001 From: mmmdbybyd <915445800@qq.com> Date: Thu, 22 Sep 2022 15:11:08 +0800 Subject: [PATCH] Add the missing $this->isRegexe() --- app/Http/Controllers/Client/Protocols/Stash.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Controllers/Client/Protocols/Stash.php b/app/Http/Controllers/Client/Protocols/Stash.php index 4d9e42bb..bef890dd 100644 --- a/app/Http/Controllers/Client/Protocols/Stash.php +++ b/app/Http/Controllers/Client/Protocols/Stash.php @@ -154,6 +154,11 @@ class Stash return $array; } + private function isRegex($exp) + { + return @preg_match($exp, null) !== false; + } + private function isMatch($exp, $str) { try {