Skip to content

Use String.replaceAll #7

Description

@rakyll

Description of the bug:

There are snippets like below in the code, autogenerated very likely:

private replaceAll(str: string, find: string, replace: string): string {
        if (find === '') {
            return str;
        }
        return str.split(find).join(replace);
    }

Replace them with String.replaceAll.

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

Activity

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

Metadata

Metadata

Assignees

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