# HG changeset patch # User Mads Kiilerich # Date 2019-01-05 16:42:07 # Node ID 743b7a20df3fa6cd9c028f9a97d4882a46001365 # Parent 9c7849a1fdfd33dee8b9b74b3661757e9c8a8f8a tests: fix utils2 extract_mentioned_usernames doctest The extra matched output seems ok. diff --git a/kallithea/lib/utils2.py b/kallithea/lib/utils2.py --- a/kallithea/lib/utils2.py +++ b/kallithea/lib/utils2.py @@ -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)