Explorar o código

Add the missing $this->isRegexe()

mmmdbybyd %!s(int64=2) %!d(string=hai) anos
pai
achega
82a20ff72c
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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 {