Skip to content

Commit

Permalink
fix: remove double spaces and spaces before commas from strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sennierer committed Apr 26, 2024
1 parent f1718c0 commit 7c2b0d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions viecpro_typesense/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def fixstring(string):
string = re.sub(REG_SKL, "", string)
string = re.sub(REG_EKL, "", string)
string = re.sub(REG_GKL, "", string)
string = string.replace(" ", " ").replace(" ,", ",")
return string


Expand Down

0 comments on commit 7c2b0d3

Please sign in to comment.