Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d8c8fa

Browse files
committed
1 parentd84ba18 commit2d8c8fa

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

‎src/enums/ua-parser-enums.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const BrowserName = Object.freeze({
1515
AMAYA:'Amaya',
1616
ANDROID:'Android Browser',
1717
ARORA:'Arora',
18+
ATLAS:'Atlas',
1819
AVANT:'Avant',
1920
AVAST:'Avast Secure Browser',
2021
AVG:'AVG Secure Browser',

‎src/main/ua-parser.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@
376376
/(?:ms|\()(ie)([\w\.]+)/i,// Internet Explorer
377377

378378
// Blink/Webkit/KHTML based // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon/LG Browser/Otter/qutebrowser/Dooble/Palemoon
379-
/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg|qute)browser|palemoon)\/([-\w\.]+)/i,
380-
// Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ//Vivaldi/DuckDuckGo/Klar/Helio/Dragon
379+
/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg|qute)browser|palemoon)\/([-\w\.]+)/i,
380+
//Atlas/Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ//Vivaldi/DuckDuckGo/Klar/Helio/Dragon
381381
/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,// HeyTap/Ovi/115/Surf
382382
/(qwant)(?:ios|mobile)\/([\d\.]+)/i,// Qwant
383383
/(ecosia|weibo)(?:__|\w+@)([\d\.]+)/i// Ecosia/Weibo

‎test/data/ua/browser/browser-all.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@
171171
"major" :"0"
172172
}
173173
},
174+
{
175+
"desc" :"Atlas",
176+
"ua" :"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Atlas/1.0",
177+
"expect" :
178+
{
179+
"name" :"Atlas",
180+
"version" :"1.0",
181+
"major" :"1"
182+
}
183+
},
174184
{
175185
"desc" :"Avant",
176186
"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)",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp