Commit 414f479
committed
fix(expressions): keep tabs inside string literals
pyparsing expands tabs in the input before matching, so a tab inside a string
literal was rewritten into spaces, and the number of spaces depended on where
the literal sat in the expression: parse("a = 'x\ty'") and parse("ab = 'x\ty'")
returned different values for the same literal. A filter on a value containing
a tab silently matched nothing.1 parent 0d58407 commit 414f479
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
0 commit comments