Skip to content

Quoted empty strings are not recognized as valid arguments #6

Description

@wolfmanx

For an argument list with explicit empty strings, the tokenizer fails to produce the correct argv array.

For the following code:

args=tokenizeArgs('some "" empty "" args');console.log(args);

the expected output is:

[ 'some', '', 'empty', '', 'args' ]

but the actual output is:

[ 'some', 'empty', 'args' ]

This is clearly not right.

I have already fixed this in my working directory. I can prepare a pull request, once the fate of pull request #5 is decided.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions