Skip to content

Commit b93edac

Browse files
committed
fix chrome mobile version parsing
1 parent 8f416d8 commit b93edac

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

amplitude.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4292,7 +4292,7 @@ module.exports = Revenue;
42924292
], [[NAME, /_/g, ' '], VERSION], [
42934293

42944294
/((?:android.+)crmo|crios)\/([\w\.]+)/i,
4295-
/android.+chrome\/([\w\.]+)\s+(?:mobile\s?safari)/i // Chrome for Android/iOS
4295+
/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i // Chrome for Android/iOS
42964296
], [[NAME, 'Chrome Mobile'], VERSION], [
42974297

42984298
/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,

amplitude.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"amplitude"
1010
],
1111
"dependencies": {
12-
"amplitude/ua-parser-js": "fbdb1dc",
12+
"amplitude/ua-parser-js": "ed538f1",
1313
"amplitude/JavaScript-MD5": "2350ea9",
1414
"component/object": "0.0.3",
1515
"component/querystring": "1.3.0",

test/ua-parser.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)