summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it.class b/it.class
index 371d9e4..69626bb 100644
--- a/it.class
+++ b/it.class
@@ -350,7 +350,7 @@ static function convertregex($pattern, $p = array())
*/
static function match($pattern, $string, $p = null)
{
- if (!preg_match('/\\\\[wb]|[!\x80-\xff]/i', $pattern) && !$p)
+ if (!preg_match('/\\\\[wb]|[!\x80-\xff]|\[\[:/i', $pattern) && !$p)
$r = preg_match('!' . $pattern . '!i', $string, $m); # fast path for simple patterns
else
{
@@ -369,7 +369,7 @@ static function match($pattern, $string, $p = null)
if (!$r) # no match
{
- if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) # Silence phpversionlint.php commit hook: function_exists('preg_last_error')
+ if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR)
it::error("Exceeded pcre.backtrack_limit of " . ini_get('pcre.backtrack_limit') . " bytes");
$result = $p['all'] ? array() : null;