# HG changeset patch # User timeless@gmail.com # Date 1462276543 0 # Node ID 827e64d68a05203cf133c262459038c26d457a1a # Parent e4e16ad128754362916008916870837adfa86eb5 spelling: greedy diff -r e4e16ad12875 -r 827e64d68a05 kallithea/lib/utils2.py --- a/kallithea/lib/utils2.py Tue May 03 11:55:14 2016 +0000 +++ b/kallithea/lib/utils2.py Tue May 03 11:55:43 2016 +0000 @@ -574,7 +574,7 @@ # Must match regexp in kallithea/public/js/base.js MentionsAutoComplete() # Check char before @ - it must not look like we are in an email addresses. -# Matching is gready so we don't have to look beyond the end. +# Matching is greedy so we don't have to look beyond the end. MENTIONS_REGEX = re.compile(r'(?:^|(?<=[^a-zA-Z0-9]))@([a-zA-Z0-9][-_.a-zA-Z0-9]*[a-zA-Z0-9])') def extract_mentioned_users(s):