ua-parser / uap-core

The regex file necessary to build language ports of Browserscope's user agent parser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Parsing fails due to lacking "Build/"

devrimcavusoglu opened this issue · comments

Parser fails to parse device model for the user agents like the following;

Mozilla/5.0 (Linux; Android 7.0; SM-J701F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.73 Mobile Safari/537.36

#parser returns
{'family': 'Generic Smartphone', 'brand': 'Generic', 'model': 'Smartphone'}

as I researched a bit, "regexes.yaml" file contains Build/ for many regexes, and although device model can be directly parsed from the user agent above as SM-J701F, it cannot be parsed since it does not have Build/ clause in it.

Please check v0.7.1