From 2a625db683f1a446c89714c0654b34333942b514 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 29 Nov 2013 10:42:56 +0100 Subject: [PATCH] Added support for backets in tag names --- src/Models/Model_Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Model_Tag.php b/src/Models/Model_Tag.php index 5f77b1a1..a6373049 100644 --- a/src/Models/Model_Tag.php +++ b/src/Models/Model_Tag.php @@ -73,7 +73,7 @@ class Model_Tag extends AbstractModel if (strlen($tag) > $maxLength) throw new SimpleException('Tag must have at most ' . $maxLength . ' characters'); - if (!preg_match('/^[a-zA-Z0-9_.-]+$/i', $tag)) + if (!preg_match('/^[()\[\]a-zA-Z0-9_.-]+$/i', $tag)) throw new SimpleException('Invalid tag "' . $tag . '"'); if (preg_match('/^\.\.?$/', $tag))