Selaa lähdekoodia

Add the missing $this->isRegexe()

mmmdbybyd 2 vuotta sitten
vanhempi
säilyke
82a20ff72c
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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 {