-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
It appears the logic for when to respect a quote vs an escaped quote does not consider if the preceding escape char is itself escaped. For example:
$ node
Welcome to Node.js v12.3.1.
Type ".help" for more information.
> const split = require('split-string')
undefined
> console.log(split('\\\\"hello world\\\\"', { separator: ' ', quotes: ['"'] }))
[ '\\\\"hello', 'world\\\\"' ]
undefined
>
I would expect this to be [ '\\\\"hello world\\\\"' ].
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels