Skip to content

Commit

Permalink
Escape "'"
Browse files Browse the repository at this point in the history
  • Loading branch information
romanfedyniak committed Aug 25, 2024
1 parent ac9261f commit afaea43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import re
import os

VERSION = "0.1.2"
VERSION = "0.1.3"
RT = typing.TypeVar('RT') # return type


Expand Down Expand Up @@ -323,6 +323,7 @@ def escape_string(string: str) -> str:
"\t": "t",
"\v": "v",
"\\": "\\",
"'": "\'",
}
new_string = ""
for ch in string:
Expand Down

0 comments on commit afaea43

Please sign in to comment.