Skip to content

Commit

Permalink
Replaced startsWith with includes (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich authored Dec 1, 2024
1 parent 4c4633a commit 85b68e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepl/deepl.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def __translate(self, script: str) -> str:
t = document.querySelector(
'd-textarea[aria-labelledby=translation-target-heading]',
)?.children[0]?.children[{line_index}]?.innerText ?? '';
return t.length > 0 && !t.startsWith('[...]');
return t.length > 0 && !t.includes('[...]');
}}
""",
)
Expand Down

0 comments on commit 85b68e8

Please sign in to comment.