Mercurial > kallithea
changeset 7670:743b7a20df3f
tests: fix utils2 extract_mentioned_usernames doctest
The extra matched output seems ok.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 05 Jan 2019 16:42:07 +0100 |
parents | 9c7849a1fdfd |
children | b8f77a47d485 |
files | kallithea/lib/utils2.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/utils2.py Sat Jan 05 16:47:08 2019 +0100 +++ b/kallithea/lib/utils2.py Sat Jan 05 16:42:07 2019 +0100 @@ -483,7 +483,7 @@ 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)