Fix mistake in pattern raw flag
This commit is contained in:
parent
98c3bfb252
commit
9a0f6da774
1 changed files with 1 additions and 1 deletions
|
@ -217,8 +217,8 @@ class ReactBot(Plugin):
|
||||||
raw = False
|
raw = False
|
||||||
if isinstance(pattern, dict):
|
if isinstance(pattern, dict):
|
||||||
flags = self._get_flags(pattern.get("flags", ""))
|
flags = self._get_flags(pattern.get("flags", ""))
|
||||||
pattern = pattern["pattern"]
|
|
||||||
raw = pattern.get("raw", False)
|
raw = pattern.get("raw", False)
|
||||||
|
pattern = pattern["pattern"]
|
||||||
if not flags or flags == re.IGNORECASE:
|
if not flags or flags == re.IGNORECASE:
|
||||||
ignorecase = flags == re.IGNORECASE
|
ignorecase = flags == re.IGNORECASE
|
||||||
s_pattern = pattern.lower() if ignorecase else pattern
|
s_pattern = pattern.lower() if ignorecase else pattern
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue