Changeset - 743b7a20df3f
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2019-01-05 16:42:07
mads@kiilerich.com
Grafted from: 7f33ebd63130
tests: fix utils2 extract_mentioned_usernames doctest

The extra matched output seems ok.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils2.py
Show inline comments
 
@@ -483,7 +483,7 @@ def extract_mentioned_usernames(text):
 
    Returns list of (possible) usernames @mentioned in given text.
 

	
 
    >>> extract_mentioned_usernames('@1-2.a_X,@1234 not@not @ddd@not @n @ee @ff @gg, @gg;@hh @n\n@zz,')
 
    ['1-2.a_X', '1234', 'ddd', 'ee', 'ff', 'gg', 'hh', 'zz']
 
    ['1-2.a_X', '1234', 'ddd', 'ee', 'ff', 'gg', 'gg', 'hh', 'zz']
 
    """
 
    return MENTIONS_REGEX.findall(text)
 

	
0 comments (0 inline, 0 general)