Skip to content

Doesn't support empty quotes #12

Closed

Description

@JamesMessinger

An empty pair of quotes (e.g. "") should pass an empty string argument. But string-argv currently passes the actual quote characters instead.

STEPS TO REPRODUCE

$ node
> var stringArgv = require('string-argv');
undefined
> stringArgv('git commit --message ""')

EXPECTED RESULTS

[ 'git', 'commit', '--message', '' ]        // <--- Last arg is an empty string

ACTUAL RESULTS

[ 'git', 'commit', '--message', '""' ]      // <--- Last arg is two quotes
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions