Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Regex does not recognize if SourceMappingURL content is within a string #5

@Koiix

Description

@Koiix

For example, if we had:
const sourceMappingURL = require('source-map-url');
const code = 'console.log("//# sourceMappingURL=index.js.map")';
sourceMappingURL.removeFrom(code);
There is no SourceMappingURL comment in the piece of code, but the current build would remove the string contents in the code segment.

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