Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalman committed Apr 12, 2021
2 parents c39590b + 1d3c98a commit 75620c7
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 24 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ua-parser-js",
"version": "0.7.27",
"version": "0.7.28",
"authors": [
"Faisal Salman <[email protected]>"
],
Expand Down
13 changes: 9 additions & 4 deletions dist/ua-parser.min.js

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions dist/ua-parser.pack.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'faisalman:ua-parser-js',
version: '0.7.27',
version: '0.7.28',
summary: 'Lightweight JavaScript-based user-agent string parser',
git: 'https://github.com/faisalman/ua-parser-js.git',
documentation: 'readme.md'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "UAParser.js",
"name": "ua-parser-js",
"version": "0.7.27",
"version": "0.7.28",
"author": "Faisal Salman <[email protected]> (http://faisalman.com)",
"description": "Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment",
"keywords": [
Expand Down
16 changes: 9 additions & 7 deletions src/ua-parser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////////
/* UAParser.js v0.7.27
/* UAParser.js v0.7.28
Copyright © 2012-2021 Faisal Salman <[email protected]>
MIT License *//*
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data.
Expand All @@ -16,7 +16,8 @@
// Constants
/////////////

var LIBVERSION = '0.7.27',

var LIBVERSION = '0.7.28',
EMPTY = '',
UNKNOWN = '?',
FUNC_TYPE = 'function',
Expand Down Expand Up @@ -213,11 +214,12 @@
browser : [[

/\b(?:crmo|crios)\/([\w\.]+)/i // Chrome for Android/iOS
], [VERSION, [NAME, CHROME]], [
/(?:edgios|edga|edg)\/([\w\.]+)/i // Microsoft Edge
], [VERSION, [NAME, EDGE]], [
/edge\/([\w\.]+)/i // Old Edge (Trident)
], [[VERSION, strMapper, oldEdgeMap], [NAME, EDGE]], [
], [VERSION, [NAME, 'Chrome']], [
/edg(?:e|ios|a)?\/([\w\.]+)/i // Microsoft Edge
], [VERSION, [NAME, 'Edge']], [
// breaking change (reserved for next major release):
///edge\/([\w\.]+)/i // Old Edge (Trident)
//], [[VERSION, mapper.str, maps.browser.oldEdge.version], [NAME, 'Edge']], [

// Presto based
/(opera mini)\/([\w\.-]+)/i, // Opera Mini
Expand Down
12 changes: 6 additions & 6 deletions test/browser-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -1184,8 +1184,8 @@
"expect" :
{
"name" : "Edge",
"version" : "0.1",
"major" : "0"
"version" : "12.0",
"major" : "12"
}
},
{
Expand All @@ -1194,8 +1194,8 @@
"expect" :
{
"name" : "Edge",
"version" : "42",
"major" : "42"
"version" : "17.17134",
"major" : "17"
}
},
{
Expand All @@ -1204,8 +1204,8 @@
"expect" :
{
"name" : "Edge",
"version" : "44",
"major" : "44"
"version" : "18.17763",
"major" : "18"
}
},
{
Expand Down

0 comments on commit 75620c7

Please sign in to comment.