Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(utils): dirname and basename should handle Windows paths #8737

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Aug 5, 2023

The Electron SDK uses basename to get the file name without path but this returned the full path on Windows.

This PR adds Windows support to the regex and adds some tests.

packages/utils/src/path.ts Outdated Show resolved Hide resolved
packages/utils/src/path.ts Dismissed Show dismissed Hide dismissed
@AbhiPrasad AbhiPrasad merged commit a4ae291 into getsentry:develop Aug 8, 2023
68 checks passed
@timfish timfish deleted the fix/dirname-basename-windows branch September 28, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants