Undo Accidental Change

This commit is contained in:
m5kro 2023-11-17 18:58:37 -08:00
parent 1fc47bc9c3
commit 15cf68cac0

View file

@ -104,7 +104,7 @@ def translateGPT(t, history, fullPromptFlag):
subbedT = varResponse[0]
# If there isn't any Japanese in the text just skip
if not re.search(r'[<EFBFBD><EFBFBD>-<2D>]+|[<5B><>-?]+|[<5B>@-<2D><>]+|[\uFF00-\uFFEF]', subbedT):
if not re.search(r'[一-龠]+|[ぁ-ゔ]+|[ァ-ヴ]+|[\uFF00-\uFFEF]', subbedT):
return (t, 0)
# Characters