Skip to content

Commit

Permalink
fix moto g(x) models
Browse files Browse the repository at this point in the history
  • Loading branch information
serg committed Aug 20, 2020
1 parent c7b1db5 commit 8672ad3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions UAParser.FormFactor.Tests/Resources/test_device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80434,3 +80434,8 @@ test_cases:
family: 'Spider'
brand: 'Spider'
model: 'Smartphone'

- user_agent_string: 'Dalvik/2.1.0 (Linux; U; Android 10; moto g(8) power Build/QPE30.79-124)'
family: 'moto g(8) power'
brand: 'Generic_Android'
model: 'moto g(8) power'
2 changes: 1 addition & 1 deletion UAParser.FormFactor.Tests/UAParser.FormFactor.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;net462</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 4 additions & 1 deletion UAParser.FormFactor/regexes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5488,7 +5488,10 @@ device_parsers:
- regex: 'Android \d+?(?:\.\d+|)(?:\.\d+|); ([^;]+?)(?: Build|\) AppleWebKit).+? Safari'
brand_replacement: 'Generic_Android_Tablet'
model_replacement: '$1'
- regex: 'Android \d+?(?:\.\d+|)(?:\.\d+|); ([^;]+?)(?: Build|\))'
- regex: 'Android \d+?(?:\.\d+|)(?:\.\d+|); ([^;]+?) Build'
brand_replacement: 'Generic_Android'
model_replacement: '$1'
- regex: 'Android \d+?(?:\.\d+|)(?:\.\d+|); ([^;]+?)\)'
brand_replacement: 'Generic_Android'
model_replacement: '$1'

Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# common configuration

environment:
project_version: '3.0.3'
project_version: '3.0.4'
project_informational_version: '$(project_version)'
project_version_is_prerelease: false

Expand Down

0 comments on commit 8672ad3

Please sign in to comment.