Add the missing $this->isRegexe()

This commit is contained in:
mmmdbybyd 2022-09-22 15:11:08 +08:00 committed by GitHub
parent b6085fd34d
commit 82a20ff72c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,11 @@ class Stash
return $array;
}
private function isRegex($exp)
{
return @preg_match($exp, null) !== false;
}
private function isMatch($exp, $str)
{
try {