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

feat: compatible browser environment #124

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

gwsbhqt
Copy link

@gwsbhqt gwsbhqt commented Nov 8, 2023

compatible browser environment, see #123

@gwsbhqt gwsbhqt mentioned this pull request Nov 8, 2023
@jdalrymple
Copy link

Ping, is there anything that needs to be done to unblock this?

if (typeof navigator !== 'undefined' && navigator.platform) {
return navigator.platform.toLowerCase().indexOf('win') !== -1;
} else if (typeof process !== 'undefined' && process.platform) {
return process.platform.toLowerCase().indexOf('win') !== -1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this match darwin too? I think this should strictly match win32 since that's what process.platform specifies.

@jonschlinkert jonschlinkert merged commit 4bc439e into micromatch:master Feb 8, 2024
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.

None yet

3 participants