Revision 28ab6fed
b/lib/objects.py | ||
---|---|---|
179 | 179 |
constants.MAX_TAG_LEN) |
180 | 180 |
if not tag: |
181 | 181 |
raise errors.TagError("Tags cannot be empty") |
182 |
if not re.match("^[ \w.+*/:-]+$", tag):
|
|
182 |
if not re.match("^[\w.+*/:-]+$", tag): |
|
183 | 183 |
raise errors.TagError("Tag contains invalid characters") |
184 | 184 |
|
185 | 185 |
def GetTags(self): |
Also available in: Unified diff