Skip to content

Commit

Permalink
Merge 36209fb into e188e8a
Browse files Browse the repository at this point in the history
  • Loading branch information
indianajone committed Oct 19, 2020
2 parents e188e8a + 36209fb commit 0fd8951
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser-browsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ const browsersList = [
const browser = {
name: 'Chrome',
};
const version = Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, ua);
const version = Utils.getFirstMatch(/(?:chrome|crios|crmo)[\s/]+(\d+(\.?_?\d+)+)/i, ua);

if (version) {
browser.version = version;
Expand Down
13 changes: 13 additions & 0 deletions test/acceptance/useragentstrings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,19 @@
type: "mobile"
engine:
name: "Blink"
- ua: "Mozilla / 5.0 (Linux; Android 9; SM-T825Y) AppleWebKit / 537.36 (KHTML เช่น Gecko) Version/13.0.3 Chrome / 86.0.4240.99 Safari/ 537.36"
spec:
browser:
name: "Chrome"
version: "86.0.4240.99"
os:
name: "Android"
version: "9"
versionName: "Pie"
platform:
type: "tablet"
engine:
name: "Gecko"
- ua: "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Roku/DVP-7.53 (147.53E04068A)"
spec:
browser:
Expand Down

0 comments on commit 0fd8951

Please sign in to comment.