Skip to content

Commit

Permalink
remove footnotes related stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyalab committed Jun 6, 2018
1 parent 54457e2 commit 5e41118
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ export function parseCaniuseData(feature, browsers) {
browsers.forEach(function(browser) {
support[browser] = {}
for (var info in feature.stats[browser]) {
letters = feature.stats[browser][info].split(" ")
letters = feature.stats[browser][info].replace(/#\d+/, "").trim().split(" ")
info = parseFloat(info.split("-")[0]) //if info is a range, take the left
if (isNaN(info)) continue
for (var i = 0; i < letters.length ; i++) {
letter = letters[i]
if (letter === "y"){ // min support asked, need to find the min value
if (letter === "d") { // skip this letter, we don't support it yet
continue
} else if (letter === "y"){ // min support asked, need to find the min value
if (typeof support[browser][letter] === "undefined" ||
info < support[browser][letter]) {
support[browser][letter] = info
Expand Down

0 comments on commit 5e41118

Please sign in to comment.