From 66c912475de1047fd1d42968108df698105ef23e Mon Sep 17 00:00:00 2001 From: Jimmy Berry Date: Wed, 4 Sep 2019 18:44:45 -0500 Subject: [PATCH] osclib/comments: command_find(): allow seperators after user. Users attempt both with and without seperators so might as well support. --- osclib/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osclib/comments.py b/osclib/comments.py index 74b33c67..4fd47c3c 100644 --- a/osclib/comments.py +++ b/osclib/comments.py @@ -103,7 +103,7 @@ class CommentAPI(object): Usage (in comment): @ [args...] """ - command_re = re.compile(r'^@(?P[^ ]+) (?P.*)$', re.MULTILINE) + command_re = re.compile(r'^@(?P[^ ,:]+)[,:]? (?P.*)$', re.MULTILINE) # Search for commands in the order the comment was created. for comment in sorted(comments.values(), key=lambda c: c['when']):