From b0b61081edbab1f65bd0f61aa5dbefa688658864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 Nov 2021 10:24:05 +0100 Subject: [PATCH] Replace "," by "~" in foreground/background color separation This is to follow the change made in WeeChat 2.6 (weechat/weechat#1264). --- qweechat/weechat/color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qweechat/weechat/color.py b/qweechat/weechat/color.py index 23a438a..20a72ec 100644 --- a/qweechat/weechat/color.py +++ b/qweechat/weechat/color.py @@ -31,7 +31,7 @@ RE_COLOR_EXT = r'(?:@%s\d{5})' % RE_COLOR_ATTRS RE_COLOR_ANY = r'(?:%s|%s)' % (RE_COLOR_STD, RE_COLOR_EXT) # \x19: color code, \x1A: set attribute, \x1B: remove attribute, \x1C: reset RE_COLOR = re.compile( - r'(\x19(?:\d{2}|F%s|B\d{2}|B@\d{5}|E|\\*%s(,%s)?|@\d{5}|b.|\x1C))|\x1A.|' + r'(\x19(?:\d{2}|F%s|B\d{2}|B@\d{5}|E|\\*%s(~%s)?|@\d{5}|b.|\x1C))|\x1A.|' r'\x1B.|\x1C' % (RE_COLOR_ANY, RE_COLOR_ANY, RE_COLOR_ANY))