Skip to content

Empty string replace fix #2

Closed
Closed
@DrDeath72

Description

@DrDeath72

When replace with empty string '' it replace it by invalid, but need leave empty string

sourceString = sourceString.replace(new RegExp(key, 'g'), value === '' ? value : value || options.invalid);

or

sourceString = sourceString.replace(new RegExp(key, 'g'), value);

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