Skip to content

Commit

Permalink
modernize-spelling: Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
acabal committed Jan 13, 2023
1 parent b68b214 commit d72fa13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions se/spelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ def modernize_spelling(xhtml: str) -> str:
xhtml = regex.sub(r"incumber", r"encumber", xhtml) # incumber -> encumber
xhtml = regex.sub(r"\bCadi\b", r"Qadi", xhtml) # cadi -> qadi
xhtml = regex.sub(r"\bcadi\b", r"qadi", xhtml) # cadi -> qadi
xhtml = regex.sub(r"\bSoldans?\b", r"Sultan", xhtml) # soldan -> sultan
xhtml = regex.sub(r"\bsoldans?\b", r"sultan", xhtml) # soldan -> sultan
xhtml = regex.sub(r"\bSoldan(s?)\b", r"Sultan\1", xhtml) # soldan -> sultan
xhtml = regex.sub(r"\bsoldan(s?)\b", r"sultan\1", xhtml) # soldan -> sultan
xhtml = regex.sub(r"\b([Pp])edler", r"\1eddler", xhtml) # pedler -> peddler
xhtml = regex.sub(r"\b([Cc])aldron(s?)", r"\1auldron\2", xhtml) # caldron -> cauldron
xhtml = regex.sub(r"\b([Tt])hru\b", r"\1hru", xhtml) # thru -> through
Expand Down

0 comments on commit d72fa13

Please sign in to comment.