Skip to content

Commit

Permalink
Remove trailing periods on windows
Browse files Browse the repository at this point in the history
Closes: #49
  • Loading branch information
justin025 committed Nov 7, 2024
1 parent 6670e6c commit 0347de1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/onthespot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def sanitize_data(value, allow_path_separators=False, escape_quotes=False):
value = value.replace('<', char)
value = value.replace('>', char)
value = value.replace('|', char)
while value.endswith('.'):
value = value[:-1]
else:
value = value.replace('/', char)
return value
Expand Down

0 comments on commit 0347de1

Please sign in to comment.