We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 492c89f commit 857a16cCopy full SHA for 857a16c
1 file changed
graphgen/utils/format.py
@@ -30,7 +30,9 @@ def clean_str(input: Any) -> str:
30
31
result = html.unescape(input.strip())
32
# https://stackoverflow.com/questions/4324790/removing-control-characters-from-a-string-in-python
33
- return re.sub(r"[\x00-\x1f\x7f-\x9f]", "", result)
+ result = re.sub(r"[\x00-\x1f\x7f-\x9f]", "", result)
34
+ result = result.strip('"').strip("'")
35
+ return result
36
37
38
async def handle_single_entity_extraction(
0 commit comments