-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
trying to parse the string:
const curl = `curl -X POST "https://api.example.com/data" -H "Content-Type: application/json" -d "{\\"key\\": \\"This string has an escaped backslash: \\\\ and a newline: \\\\n\\"}"`;
Which is equivalent to the valid curl command
curl -X POST "https://api.example.com/data" -H "Content-Type: application/json" -d "{\"key\": \"This string has an escaped backslash: \\ and a newline: \\n\"}"
But when I parse it, my args array looks like the following:
_: [
'curl',
'https://api.example.com/data',
'string',
'has',
'an',
'escaped',
'backslash:',
'\\\\',
'and',
'a',
'newline:',
'\\\\n\\"}"'
],
Am I missing something or is this a bug?
Metadata
Metadata
Assignees
Labels
No labels