Skip to content

[Bug]: Regex not work with ipad Webviews 馃崗#1579

Description

@thibautLedz

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Hello team,

The regexp seems not working with iPad webviews since ipad send a macos catalina User Agent...

Webview iPad OS 18.5 user agent

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)

Reproduction

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)

browserslist-useragent-regexp version

v4.1.3

Possible solution

Filter on AppleWebKit version which can be correlated to an ios version :
https://github.com/mdn/browser-compat-data/blob/main/browsers/webview_ios.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions