accept "," as well as ":" as a sed target marker

This commit is contained in:
jesopo 2019-09-07 22:38:21 +01:00
parent b807ffbba8
commit a59afb883a

View file

@ -5,7 +5,7 @@ import re, traceback
from src import ModuleManager, utils from src import ModuleManager, utils
REGEX_SPLIT = re.compile("(?<!\\\\)/") REGEX_SPLIT = re.compile("(?<!\\\\)/")
REGEX_SED = re.compile("^(?:(\\S+): )?s/") REGEX_SED = re.compile("^(?:(\\S+)[:,] )?s/")
@utils.export("channelset", @utils.export("channelset",
utils.BoolSetting("sed","Disable/Enable sed in a channel")) utils.BoolSetting("sed","Disable/Enable sed in a channel"))