Skip to content

Commit

Permalink
Improve Plus strip when nick contains hex numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Rostagno committed Aug 1, 2011
1 parent a3bf640 commit 0da672f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emesene/gui/base/Plus.py
Expand Up @@ -40,7 +40,7 @@
open_tag_re = re.compile('''(.*?)\[\$?(/?)(\w+)(\=(\#?[0-9a-f]+))?\]''', re.IGNORECASE)

#regex used to remove plus markup
tag_plus_strip_re = re.compile('(\[\w(\=\d+)?\])|(\[\w\=\w+\])|(\[\/\w+(\=\d+)?\])')
tag_plus_strip_re = re.compile('(\[\w(\=#?[0-9A-Fa-f]+|\=\w+)?\])|(\[\/\w+(\=#?[0-9A-Fa-f]+|\=\w+)?\])')
tag_plus_old_strip_re = re.compile('\·(\&|\@|\#|0)|\·\$(\d+|\#\w+)?(\,(\d+|\#\w+))?')

def parse_emotes(markup):
Expand Down

0 comments on commit 0da672f

Please sign in to comment.