Skip to content

str.replace is replacing only the first instance of this.separator #10

@ghost

Description

imho it'd be a quick and worthwhile update to make the following changes:

Limit the characters allowed to be used as separators -- maybe something like throw an error if you match /[`!$^&*()|+-=?:'",.<>{}[]\/]/gi

And update the str.replace line to do global replaces.
array[i] = array[i].replace(new RegExp(this.separator, 'g'), ' ');

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