From: Mischa POSLAWSKY Date: Sun, 3 Apr 2016 21:47:26 +0000 (+0200) Subject: browser: match support percentage with multiple comment markers X-Git-Tag: v1.9~45 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/9adca2adb30db13e6d2dabdb08d1388672f2dfae browser: match support percentage with multiple comment markers Encountered in recent data. --- diff --git a/browser.plp b/browser.plp index 782bea8..eb7e0d0 100644 --- a/browser.plp +++ b/browser.plp @@ -272,7 +272,7 @@ sub featurescore { while (my ($browser, $versions) = each %$row) { ref $versions eq 'HASH' or next; while (my ($version, $status) = each %$versions) { - $status =~ s/\h\#\d+//; + $status =~ s/\h\#\d+//g; $rank += ($canihas->{$browser}->{$version} || .001) * $PSTATS{$status}; } }