Skip to content

feat: compatible browser environment#124

Merged
jonschlinkert merged 1 commit intomicromatch:masterfrom
gwsbhqt:feat/browser-compat
Feb 8, 2024
Merged

feat: compatible browser environment#124
jonschlinkert merged 1 commit intomicromatch:masterfrom
gwsbhqt:feat/browser-compat

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.

3 participants