Skip to content

Commit

Permalink
fix TrimArabicDiacritics, #366
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Feb 27, 2022
1 parent 03a5389 commit 7acaf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyglossary/entry_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def __init__(self, glos: "GlossaryType"):
self._pat = re.compile("[\u064b-\u065f]")

def run(self, entry: BaseEntry) -> "Optional[BaseEntry]":
words = entry.l_word
words = list(entry.l_word)
hw = words[0]
hw_t = self._pat.sub("", hw)
hw_t = hw_t.replace("\u0622", "\u0627").replace("\u0623", "\u0627")
Expand Down

0 comments on commit 7acaf3e

Please sign in to comment.