Commit 7cef331
committed
netpyne-24 Fix bug about name escaping
The issue is located in the PythonControlledCapability, this code:
model.replace(/"/g, '\\"').replace(/\\/g, '\\\\')
escapes the \ at a bad moment, it should escape it before the "
model.replace(/\\/g, '\\\\').replace(/"/g, '\\"')1 parent 50481d6 commit 7cef331
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments