Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android version regular expression needs update #280

Open
aiamk opened this issue Oct 21, 2022 · 0 comments
Open

Android version regular expression needs update #280

aiamk opened this issue Oct 21, 2022 · 0 comments

Comments

@aiamk
Copy link

aiamk commented Oct 21, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant