Skip to content

Improves detection for various devices #5911

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

Merged
merged 2 commits into from
Feb 11, 2019
Merged

Improves detection for various devices #5911

merged 2 commits into from
Feb 11, 2019

Conversation

liviuconcioiu
Copy link
Collaborator

Improves detection of AllCall, AllView, CUBOT, Evolio, Google, Huawei, Karbonn, M4tel, NYX Mobile, Nokia, Oppo, Sharp, Sony, Timovi, ZTE devices

Improves detection of AllCall, AllView, CUBOT, Evolio, Google, Huawei, Karbonn, M4tel, NYX Mobile, Nokia, Oppo, Sharp, Sony, Timovi, ZTE devices
@@ -7057,7 +7181,7 @@ Spice:

# Sharp
Sharp:
regex: 'SHARP|SBM|SH-?[0-9]+[a-z]?[);/ ]|AQUOS|506SH|SHL22 '
regex: 'SHARP|SBM|SH-?[0-9]+[a-z]?[);/ ]|AQUOS|506SH|SHL22|FS8010 '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I'm nor sure if the in the end of SHL22 was there on purpose. But as there are no tests that fail I guess it wasn't. Nevertheless I think it might be better to match exact model fragments like SHL22 or FS8010 with a [);/ ] in the end, so it doesn't match anything with additional chars

@@ -7399,6 +7525,10 @@ Timovi:
regex: 'Tmovi'
device: 'smartphone'
models:
- regex: 'Prime'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to use Tmovi[ _]Prime, so it also matches Mozilla/5.0 (Linux; U; Android 4.4.2; es-LA; Tmovi_Prime Build/KOT49H) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1 UCBrowser/9.7.0.520 Mobile

@sgiehl sgiehl merged commit 57aed35 into matomo-org:master Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants