account for minor version only android version strings

This commit is contained in:
John Bender 2011-11-14 11:11:34 -08:00
parent c8d06f5d86
commit ba8030e4f3

View file

@ -70,7 +70,7 @@ window.Perf = (function($, Perf) {
vRegexs: {}
});
Perf.vRegexs[Perf.agents.ANDROID] = /([0-9].[0-9].[0-9]);/;
Perf.vRegexs[Perf.agents.ANDROID] = /([0-9].[0-9])(.[0-9])?;/;
Perf.vRegexs[Perf.agents.WP] = /Windows Phone OS ([0-9].[0-9]);/;
Perf.vRegexs[Perf.agents.IPHONE] = /iPhone OS ([0-9]_[0-9])/;
Perf.vRegexs[Perf.agents.IPAD] = /iPad; U; CPU OS ([0-9]_[0-9])/;