]> git.cworth.org Git - turbot/blobdiff - turbot/interaction.py
Allow tag values to have numbers
[turbot] / turbot / interaction.py
index ec64706658f3126bfc1974921d12e4cdece78ffe..13b8ebf00fd6a31ceb60757b076ff86f30421dcd 100644 (file)
@@ -927,8 +927,8 @@ def tag(turb, body, args):
     tag = tag.upper()
 
     # Reject a tag that is not alphabetic or underscore A-Z_
-    if not re.match(r'^[A-Z_]*$', tag):
-        return bot_reply("Sorry, tags can only contain letters "
+    if not re.match(r'^[A-Z0-9_]*$', tag):
+        return bot_reply("Sorry, tags can only contain letters, numbers, "
                          + "and the underscore character.")
 
     if action == 'remove':