diff --git a/src/Models/Model_Tag.php b/src/Models/Model_Tag.php index c3ed0cc0..3d1a609f 100644 --- a/src/Models/Model_Tag.php +++ b/src/Models/Model_Tag.php @@ -37,7 +37,7 @@ class Model_Tag extends RedBean_SimpleModel 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 . '"'); return $tag;