Commit f9c7db0
fix: resolve conflict markers and fix O(n²) edge case in parser_cef
The feature commit accidentally committed unresolved stash conflict markers
into parser_cef.py, making it invalid Python. Resolves to _parse_cef_ext().
Also fixes an O(n²) scan in _parse_cef_ext: when the key scanner reaches
end-of-string with no '=' remaining, the old code rewound to start+1 and
rescanned — degenerating to quadratic on '='-free input. Now breaks out of
the loop immediately.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 31e933d commit f9c7db0
1 file changed
Lines changed: 3 additions & 5 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 86 | | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
0 commit comments