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

Appearance settings

Commit 8d3c2d3

Browse filesBrowse files
committed
Add new browser: Cobalt
1 parent d11fc47 commit 8d3c2d3
Copy full SHA for 8d3c2d3

File tree

2 files changed

+40
-1
lines changed
Filter options

2 files changed

+40
-1
lines changed

‎src/ua-parser.js

Copy file name to clipboardExpand all lines: src/ua-parser.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,10 @@
330330
/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,
331331
// Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir/Obigo/Mosaic/Go/ICE/UP.Browser
332332
/(links) \(([\w\.]+)/i // Links
333-
], [NAME, VERSION]
333+
], [NAME, VERSION], [
334+
335+
/(cobalt)\/([\w\.]+)/i // Cobalt
336+
], [NAME, [VERSION, /master.|lts./, ""]]
334337
],
335338

336339
cpu : [[

‎test/browser-test.json

Copy file name to clipboardExpand all lines: test/browser-test.json
+36Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,5 +1591,41 @@
15911591
"version" : "15.6,2",
15921592
"major" : "15"
15931593
}
1594+
},
1595+
{
1596+
"desc" : "Cobalt 23 Master",
1597+
"ua" : "Mozilla/5.0 (X11; Linux x86_64) Cobalt/23.master.0.0-devel (unlike Gecko) v8/8.8.278.8-jit gles Starboard/15",
1598+
"expect" : {
1599+
"name" : "Cobalt",
1600+
"version": "23.0.0",
1601+
"major" : "23"
1602+
}
1603+
},
1604+
{
1605+
"desc" : "Cobalt 23 LTS",
1606+
"ua" : "Mozilla/5.0 (X11; Linux x86_64) Cobalt/23.lts.1.0-qa (unlike Gecko) v8/8.8.278.8-jit gles Starboard/15",
1607+
"expect" : {
1608+
"name" : "Cobalt",
1609+
"version": "23.1.0",
1610+
"major" : "23"
1611+
}
1612+
},
1613+
{
1614+
"desc" : "Cobalt 11",
1615+
"ua" : "Mozilla/5.0 (X11; Linux x86_64) Cobalt/11.0-qa (unlike Gecko) Starboard/6",
1616+
"expect" : {
1617+
"name" : "Cobalt",
1618+
"version": "11.0",
1619+
"major" : "11"
1620+
}
1621+
},
1622+
{
1623+
"desc" : "Cobalt 9",
1624+
"ua" : "Mozilla/5.0 (X11; Linux x86_64) Cobalt/9.0-qa (unlike Gecko) Starboard/4",
1625+
"expect" : {
1626+
"name" : "Cobalt",
1627+
"version": "9.0",
1628+
"major" : "9"
1629+
}
15941630
}
15951631
]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.