Skip to content

SourceMappingUrl RegExp is too greedy #87

Closed
@ghost

Description

The current RegExp is too greedy and also matches code (and comments) following the //#sourceMappingUrl comment
Please see https://regex101.com/r/xZ2xJ8/1

The one used here https://github.com/thlorenz/convert-source-map/blob/master/index.js#L5 for example works perfectly.
Please see https://regex101.com/r/xZ2xJ8/2

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