Skip to content
Snippets Groups Projects
Commit dd0b0c24 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

utils: fix an edge case in split_unescape

This was picked up by running the doctest
parent a48391ea
No related merge requests found
......@@ -42,7 +42,8 @@
if next_char == delim:
current.append(next_char)
else:
current.append(escape)
if next_char != escape:
current.append(escape)
current.append(next_char)
except StopIteration:
current.append(escape)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment