From 2e6fe854f8d09881a0e26898dd6f11682720efdc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Feb 2021 22:29:57 +0000 Subject: [PATCH] More checks --- content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content.py b/content.py index 1d8334412..15387c926 100644 --- a/content.py +++ b/content.py @@ -389,6 +389,8 @@ def validHashTag(hashtag: str) -> bool: 'ŴŵÝýŸÿŶŷŹźŽžŻż') if set(hashtag).issubset(validChars): return True + if '#' in hashtag or '"' in hashtag or '&' in hashtag: + return False if isValidLanguage(hashtag): return True return False