Skip to content

Commit 9fc460e

Browse files
committed
Add new engine: Dillo - https://dillo-browser.org/
1 parent 41dd83f commit 9fc460e

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/enums/ua-parser-enums.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ const EngineName = Object.freeze({
312312
AMAYA: 'Amaya',
313313
ARKWEB: 'ArkWeb',
314314
BLINK: 'Blink',
315+
DILLO: 'Dillo',
315316
EDGEHTML: 'EdgeHTML',
316317
FLOW: 'Flow',
317318
GECKO: 'Gecko',

src/main/ua-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@
939939
/(presto)\/([\w\.]+)/i, // Presto
940940
/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna/Servo
941941
/ekioh(flow)\/([\w\.]+)/i, // Flow
942-
/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, // KHTML/Tasman/Links
942+
/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i, // KHTML/Tasman/Links/Dillo
943943
/(icab)[\/ ]([23]\.[\d\.]+)/i, // iCab
944944

945945
/\b(libweb)/i // LibWeb

test/data/ua/engine/engine-all.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
"version" : "57.0.2987.146"
1818
}
1919
},
20+
{
21+
"desc" : "Dillo",
22+
"ua" : "Dillo/3.1.0",
23+
"expect" :
24+
{
25+
"name" : "Dillo",
26+
"version" : "3.1.0"
27+
}
28+
},
2029
{
2130
"desc" : "EdgeHTML",
2231
"ua" : "Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 Edge/12.0",

0 commit comments

Comments
 (0)