浏览代码

Add the missing $this->isRegexe()

mmmdbybyd 2 年之前
父节点
当前提交
82a20ff72c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      app/Http/Controllers/Client/Protocols/Stash.php

+ 5 - 0
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 {