-
Notifications
You must be signed in to change notification settings - Fork 27
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 false negatives from isSupported #90
base: master
Are you sure you want to change the base?
Conversation
return browser.split(" ") | ||
}) | ||
.every((browser) => { | ||
return data.stats[browser[0]] && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support case insensitive search for "Y":
return data.stats[browser[0]] &&
data.stats[browser[0]][browser[1]] &&
String.prototype.toLowerCase.call(data.stats[browser[0]][browser[1]][0]) === "y"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, you should incorporate the fix from https://github.com/Nyalab/caniuse-api/pull/61/files here, so:
return data &&
data.stats[browser[0]] &&
data.stats[browser[0]][browser[1]] &&
String.prototype.toLowerCase.call(data.stats[browser[0]][browser[1]][0]) === "y"
@Nyalab - I think this PR looks good. Could you take a look? We need a patch version for a new project we maintain https://github.com/ExpediaGroup/nimbuild/tree/master/packages/nimbuild-corejs. |
It's been almost a year, can we get this merged?? |
This should fix issues #82 and #83.
The problem is that the data set returns as
y #x
wherex
is the number mapping to the foot note.