Tags now allow dots
This commit is contained in:
parent
688385d553
commit
4bfa2a019a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue