Skip to content

Commit f56073b

Browse files
committed
Improve browser detection: remove unnecessary extra space in "Avant "
1 parent 5c10e2b commit f56073b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/ua-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
/(kindle)\/([\w\.]+)/i, // Kindle
305305
/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, // Lunascape/Maxthon/Netfront/Jasmine/Blazer
306306
// Trident based
307-
/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, // Avant/IEMobile/SlimBrowser
307+
/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, // Avant/IEMobile/SlimBrowser
308308
/(ba?idubrowser)[\/ ]?([\w\.]+)/i, // Baidu Browser
309309
/(?:ms|\()(ie) ([\w\.]+)/i, // Internet Explorer
310310

test/specs/browser-all.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"ua" : "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; Avant Browser; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
115115
"expect" :
116116
{
117-
"name" : "Avant ",
117+
"name" : "Avant",
118118
"version" : "undefined",
119119
"major" : "undefined"
120120
}

0 commit comments

Comments
 (0)