davidshimjs/qrcodejs

Android version regular expression needs update

aiamk opened this issue · 0 comments

aiamk commented

var aMat = sAgent.toString().match(/android ([0-9]\.[0-9])/i);

This will prevent android versions above 8.0.0 from generating data URI because google changed versioning format, they don't use semantic versioning in user agent anymore just integer: 9, 10, 11, 12

Best Regards.