Skip to content

Commit

Permalink
fix: Fixes punctuation spacing for backticks
Browse files Browse the repository at this point in the history
* fix punctuation spacing for backticks

* Adds additional characters for 'just in case' situations ;)

Issue: #71

Authored-by: Joshua Rose <[email protected]>
  • Loading branch information
H4ppy-04 committed Jun 3, 2023
1 parent b65a081 commit 08db42d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions urban/urban_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ def remove_punctuation_spacing(text: str):
chars.pop(char)
case " ":
chars.pop(char)
case "`":
chars.pop(char)
case "~":
chars.pop(char)
case "\\":
chars.pop(char)
case "/":
chars.pop(char)
except IndexError:
break

Expand Down

0 comments on commit 08db42d

Please sign in to comment.