Replace re.match
with re.fullmatch
See [Benjamin-Loison/cpython/issues/43](https://github.com/Benjamin-Loison/cpython/issues/43).
This commit is contained in:
parent
7ee5667628
commit
02ee625cc7
@ -13,7 +13,7 @@ message = ' '.join(pathSearchMessageParts[2:])
|
|||||||
pathSearchRegex = re.compile(pathSearch)
|
pathSearchRegex = re.compile(pathSearch)
|
||||||
messageRegex = re.compile(message)
|
messageRegex = re.compile(message)
|
||||||
|
|
||||||
isPathSearchAChannelId = re.match(r'[a-zA-Z0-9-_]{24}', pathSearch)
|
isPathSearchAChannelId = re.fullmatch(r'[a-zA-Z0-9-_]{24}', pathSearch)
|
||||||
|
|
||||||
searchOnlyCaptions = pathSearchMessageParts[0] == 'search-only-captions'
|
searchOnlyCaptions = pathSearchMessageParts[0] == 'search-only-captions'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user