Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Electron Regex Fix #74

@McPo

Description

@McPo

Hi, the current regex for chrome is

/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|webpack|eval).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i

However Ive noticed in Electron apps at least, theres no guarantee of a file:// prefix. ie Filenames for me are listed as.

/User/Emmet/......

as opposed to

file://User/Emmet/......

Ive changed the regex to

/^\s*at (.*?) ?\(((?:file|https?|\s*|blob|chrome-extension|native|webpack|eval).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i

And now Tracekit is working within Electron.

If any more information is required, let me know.

Thanks,
Emmet

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