uap-core
uap-core copied to clipboard
OnePlus 6T user agent parsing
trafficstars
UserAgent string:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A6013) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.80 Mobile Safari/537.36
Getting "Generic Smartphone" for device.family. Would like to see "ONEPLUS A6013"
Also would like to see os.major be "9" in this case. Both major and minor are null.
Hey! Just adding more info, this is probably related to #356 The current ONEPLUS regex always expect the Build/ word:
; (ONEPLUS [a-zA-Z]\d+) Build/
or
; (ONE [a-zA-Z]\d+) Build/