Browse Source
splitsep() would drop escapes from its inputs. For example: splitsep ':' 'first:middle:\e\s\c\a\p\e\d' a b c gave a='first', b='middle', c='escaped'. Even worse: splitsep ':' '\e\s\c\a\p\e\d:middle:last' a b c gave a='escaped', b='escaped', c='escaped:middle:last'. This fixes the quoting so both calls return the values you'd expect (e.g. 'first', 'middle', '\e\s\c\a\p\e\d').master


1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue