We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49c7879 commit dfc6ad6Copy full SHA for dfc6ad6
InteractiveHtmlBom/ecad/kicad_extra/sexpressions.py
@@ -4,7 +4,7 @@
4
\s*(?:
5
(?P<open>\()|
6
(?P<close>\))|
7
- (?P<sq>"[^"]*")|
+ (?P<sq>"(?:\\\\|\\"|[^"])*")|
8
(?P<s>[^(^)\s]+)
9
)'''
10
pattern = re.compile(term_regex)
@@ -23,7 +23,7 @@ def parse_sexpression(sexpression):
23
tmp, out = out, stack.pop(-1)
24
out.append(tmp)
25
elif term == 'sq':
26
- out.append(value[1:-1])
+ out.append(value[1:-1].replace('\\\\', '\\').replace('\\"', '"'))
27
elif term == 's':
28
out.append(value)
29
else:
0 commit comments