Skip to content

Commit

Permalink
Revert breaking fix #279 and release as 0.7.28
Browse files Browse the repository at this point in the history
  • Loading branch information
faisalman committed Apr 10, 2021
1 parent 535f11b commit 1d3c98a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 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
4 changes: 2 additions & 2 deletions dist/ua-parser.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 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": "Lightweight JavaScript-based user-agent string parser",
"keywords": [
Expand Down
11 changes: 6 additions & 5 deletions src/ua-parser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!@license
* UAParser.js v0.7.27
* UAParser.js v0.7.28
* Lightweight JavaScript-based User-Agent string parser
* https://github.com/faisalman/ua-parser-js
*
Expand All @@ -16,7 +16,7 @@
/////////////


var LIBVERSION = '0.7.27',
var LIBVERSION = '0.7.28',
EMPTY = '',
UNKNOWN = '?',
FUNC_TYPE = 'function',
Expand Down Expand Up @@ -215,10 +215,11 @@

/\b(?:crmo|crios)\/([\w\.]+)/i // Chrome for Android/iOS
], [VERSION, [NAME, 'Chrome']], [
/(?:edgios|edga|edg)\/([\w\.]+)/i // Microsoft Edge
/edg(?:e|ios|a)?\/([\w\.]+)/i // Microsoft Edge
], [VERSION, [NAME, 'Edge']], [
/edge\/([\w\.]+)/i // Old Edge (Trident)
], [[VERSION, mapper.str, maps.browser.oldEdge.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\smini)\/([\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 @@ -1154,8 +1154,8 @@
"expect" :
{
"name" : "Edge",
"version" : "0.1",
"major" : "0"
"version" : "12.0",
"major" : "12"
}
},
{
Expand All @@ -1164,8 +1164,8 @@
"expect" :
{
"name" : "Edge",
"version" : "42",
"major" : "42"
"version" : "17.17134",
"major" : "17"
}
},
{
Expand All @@ -1174,8 +1174,8 @@
"expect" :
{
"name" : "Edge",
"version" : "44",
"major" : "44"
"version" : "18.17763",
"major" : "18"
}
},
{
Expand Down

0 comments on commit 1d3c98a

Please sign in to comment.