Skip to content

Current clean up method might cause some problems #24

@PeterDaveHello

Description

@PeterDaveHello

e.g.

uri = 'https://123.com/?ref=1234&fb_ref=4567'
uri = uri.replace(/&?ref=[^&#$/]*/gi, '');

The result will be: https://123.com/?&fb_ which I assume is not what we expected.

Ref:

uri = uri.replace(/&?ref=[^&#$/]*/gi, '');

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