diff --git a/qrcode.js b/qrcode.js index 5507c15..b2c162f 100644 --- a/qrcode.js +++ b/qrcode.js @@ -162,7 +162,7 @@ var QRCode; if (/android/i.test(sAgent)) { // android android = true; - var aMat = sAgent.toString().match(/android ([0-9]\.[0-9])/i); + var aMat = sAgent.toString().match(/android (([0-9])+(\.[0-9]+)?)/i); if (aMat && aMat[1]) { android = parseFloat(aMat[1]);