Skip to content

Commit

Permalink
Ignore _ underscore when doing lookups to make repeated lookups easier
Browse files Browse the repository at this point in the history
  • Loading branch information
artjomsR authored and 1over137 committed Nov 28, 2024
1 parent 3129dd3 commit 96d6646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vocabsieve/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,4 +491,4 @@ def process_defi_anki(plaintext: str, markdown: str, defi: Definition, source: D


def remove_punctuations(s: str) -> str:
return re.sub('[\\?\\.!«»…,()\\[\\]]*', "", s)
return re.sub('[\\?\\.!«»…,()\\[\\]]*_', "", s)

0 comments on commit 96d6646

Please sign in to comment.