Backport - Improve browser detection for ICEBrowser

(cherry picked from commit 85bf7076d3)
This commit is contained in:
Faisal Salman
2024-09-10 20:23:00 +07:00
parent 4322c49c55
commit 0e470d215a
2 changed files with 12 additions and 2 deletions

View File

@@ -352,8 +352,8 @@
// Other
/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,
// Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Obigo/Mosaic/Go/ICE/UP.Browser
/(links) \(([\w\.]+)/i, // Links
], [NAME, VERSION], [
/(links) \(([\w\.]+)/i // Links
], [NAME, [VERSION, /_/g, '.']], [
/(cobalt)\/([\w\.]+)/i // Cobalt
], [NAME, [VERSION, /master.|lts./, ""]]