Skip to content

sourceMappingURL matcher should stop on a non-matching non-blank line #9

Description

@waltjones

The matcher in parseMapPath should stop when it encounters a non-blank, non-matching line, else it may match the string that belongs to a concatenated file. This will only occur in files that don't have a valid sourceMappingUrl, and will result in a false match

https://github.com/rollbar/rollbar-cli/blob/master/src/sourcemaps/scanner.js#L179

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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