mirror of https://gitlab.com/bashrc2/epicyon
Invalid characters in hashtags
parent
41806db01e
commit
11fd50419d
|
@ -114,7 +114,7 @@ def _validHashtagCategory(category: str) -> bool:
|
|||
if not category:
|
||||
return False
|
||||
|
||||
invalidChars = (',', ' ', '<', ';', '\\', '"')
|
||||
invalidChars = (',', ' ', '<', ';', '\\', '"', '&')
|
||||
for ch in invalidChars:
|
||||
if ch in category:
|
||||
return False
|
||||
|
|
|
@ -154,7 +154,7 @@ def htmlHashTagSwarm(baseDir: str, actor: str, translate: {}) -> str:
|
|||
if len(hashTagName) > maxTagLength:
|
||||
# NoIncrediblyLongAndBoringHashtagsShownHere
|
||||
continue
|
||||
if '"' in hashTagName or "'" in hashTagName:
|
||||
if '&' in hashTagName or '"' in hashTagName or "'" in hashTagName:
|
||||
continue
|
||||
if '#' + hashTagName + '\n' in blockedStr:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue