Merge pull request #2201 from jberry-suse/osclib-comments-command-find-allow-seperators
osclib/comments: command_find(): allow seperators after user.
This commit is contained in:
commit
783a067423
@ -103,7 +103,7 @@ class CommentAPI(object):
|
||||
Usage (in comment):
|
||||
@<user> <command> [args...]
|
||||
"""
|
||||
command_re = re.compile(r'^@(?P<user>[^ ]+) (?P<args>.*)$', re.MULTILINE)
|
||||
command_re = re.compile(r'^@(?P<user>[^ ,:]+)[,:]? (?P<args>.*)$', re.MULTILINE)
|
||||
|
||||
# Search for commands in the order the comment was created.
|
||||
for comment in sorted(comments.values(), key=lambda c: c['when']):
|
||||
|
Loading…
x
Reference in New Issue
Block a user