mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
Fix trailing comma errors for Google Closure
This commit is contained in:
parent
ec68ecee4a
commit
bf315c4a08
@ -323,14 +323,14 @@
|
|||||||
/(lavf)((\d+)[\d\.]+)/i // Lavf (FFMPEG)
|
/(lavf)((\d+)[\d\.]+)/i // Lavf (FFMPEG)
|
||||||
], [NAME, VERSION, MAJOR], [
|
], [NAME, VERSION, MAJOR], [
|
||||||
|
|
||||||
/(htc_one_s)\/((\d+)[\d\.]+)/i, // HTC One S
|
/(htc_one_s)\/((\d+)[\d\.]+)/i // HTC One S
|
||||||
], [[NAME, /_/g, ' '], VERSION, MAJOR], [
|
], [[NAME, /_/g, ' '], VERSION, MAJOR], [
|
||||||
|
|
||||||
/(mplayer)(?:\s|\/)(?:(?:sherpya-){0,1}svn)(?:-|\s)(r\d+(?:-\d+[\w\.-]+){0,1})/i,
|
/(mplayer)(?:\s|\/)(?:(?:sherpya-){0,1}svn)(?:-|\s)(r\d+(?:-\d+[\w\.-]+){0,1})/i
|
||||||
// MPlayer SVN
|
// MPlayer SVN
|
||||||
], [NAME, VERSION], [
|
], [NAME, VERSION], [
|
||||||
|
|
||||||
/(mplayer)(?:\s|\/|[unkow-]+)((\d+)[\w\.-]+)/i, // MPlayer
|
/(mplayer)(?:\s|\/|[unkow-]+)((\d+)[\w\.-]+)/i // MPlayer
|
||||||
], [NAME, VERSION, MAJOR], [
|
], [NAME, VERSION, MAJOR], [
|
||||||
|
|
||||||
/(mplayer)/i, // MPlayer (no other info)
|
/(mplayer)/i, // MPlayer (no other info)
|
||||||
@ -375,7 +375,7 @@
|
|||||||
/(windows-media-player)\/((\d+)[\w\.-]+)/i
|
/(windows-media-player)\/((\d+)[\w\.-]+)/i
|
||||||
], [[NAME, /-/g, ' '], VERSION, MAJOR], [
|
], [[NAME, /-/g, ' '], VERSION, MAJOR], [
|
||||||
|
|
||||||
/windows\/((\d+)[\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ (home media server)/i,
|
/windows\/((\d+)[\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ (home media server)/i
|
||||||
// Windows Media Server
|
// Windows Media Server
|
||||||
], [VERSION, MAJOR, [NAME, 'Windows']], [
|
], [VERSION, MAJOR, [NAME, 'Windows']], [
|
||||||
|
|
||||||
@ -431,7 +431,7 @@
|
|||||||
/(dell)\s(strea[kpr\s\d]*[\dko])/i // Dell Streak
|
/(dell)\s(strea[kpr\s\d]*[\dko])/i // Dell Streak
|
||||||
], [VENDOR, MODEL, [TYPE, TABLET]], [
|
], [VENDOR, MODEL, [TYPE, TABLET]], [
|
||||||
|
|
||||||
/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i, // Kindle Fire HD
|
/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i // Kindle Fire HD
|
||||||
], [MODEL, [VENDOR, 'Amazon'], [TYPE, TABLET]], [
|
], [MODEL, [VENDOR, 'Amazon'], [TYPE, TABLET]], [
|
||||||
|
|
||||||
/\((ip[honed|\s\w*]+);.+(apple)/i // iPod/iPhone
|
/\((ip[honed|\s\w*]+);.+(apple)/i // iPod/iPhone
|
||||||
@ -524,7 +524,7 @@
|
|||||||
os : [[
|
os : [[
|
||||||
|
|
||||||
// Windows based
|
// Windows based
|
||||||
/microsoft\s(windows)\s(vista|xp)/i, // Windows (iTunes)
|
/microsoft\s(windows)\s(vista|xp)/i // Windows (iTunes)
|
||||||
], [NAME, VERSION], [
|
], [NAME, VERSION], [
|
||||||
/(windows)\snt\s6\.2;\s(arm)/i, // Windows RT
|
/(windows)\snt\s6\.2;\s(arm)/i, // Windows RT
|
||||||
/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i
|
/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i
|
||||||
|
Loading…
x
Reference in New Issue
Block a user