diff --git a/website/search.py b/website/search.py index 7cd7c55..aefcf83 100755 --- a/website/search.py +++ b/website/search.py @@ -13,7 +13,7 @@ message = ' '.join(pathSearchMessageParts[2:]) pathSearchRegex = re.compile(pathSearch) 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'