Commit 755e08f
With the new regex r"^([?!]+)", if condition does not start with ? or !,
re.split will return a list with a single element: the condition string itself.
Consequently, len(tokens) will be 1, and prefix on line 275 will be assigned the entire condition string.1 parent 5dbd1ca commit 755e08f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
0 commit comments