Skip to content

Commit

Permalink
dequote(): Converting input to string first before replacing (fixes #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvnmgrx committed Apr 1, 2022
1 parent 7c850c0 commit f164f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kiutils/utils/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def dequote(input: str) -> str:
Returns:
str: String with replaced double-quotes
"""
return input.replace("\"", "\\\"")
return str(input).replace("\"", "\\\"")

0 comments on commit f164f4d

Please sign in to comment.