mirror of https://gitlab.com/bashrc2/epicyon
No quotes in hashtags
parent
43775447cc
commit
41806db01e
|
@ -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,6 +154,8 @@ def htmlHashTagSwarm(baseDir: str, actor: str, translate: {}) -> str:
|
|||
if len(hashTagName) > maxTagLength:
|
||||
# NoIncrediblyLongAndBoringHashtagsShownHere
|
||||
continue
|
||||
if '"' in hashTagName or "'" in hashTagName:
|
||||
continue
|
||||
if '#' + hashTagName + '\n' in blockedStr:
|
||||
continue
|
||||
with open(tagsFilename, 'r') as fp:
|
||||
|
|
Loading…
Reference in New Issue