From 3796968cfefeafb670867db6cc03409ea548d32a Mon Sep 17 00:00:00 2001 From: Jake Mc Date: Thu, 24 Oct 2013 16:17:43 +1000 Subject: [PATCH] Add support for ipod touch "Mozilla/5.0 (iPod touch; CPU iPhone OS 7_0_2 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A501 Safari/9537.53" Now matches until the ; --- src/ua-parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ua-parser.js b/src/ua-parser.js index 0be53cd..37e1bd2 100644 --- a/src/ua-parser.js +++ b/src/ua-parser.js @@ -315,7 +315,7 @@ /(dell)\s(strea[kpr\s\d]*[\dko])/i // Dell Streak ], [VENDOR, MODEL, [TYPE, TABLET]], [ - /\((ip[honed]+);.+(apple)/i // iPod/iPhone + /\((ip[honed|\s\w*]+);.+(apple)/i // iPod/iPhone ], [MODEL, VENDOR, [TYPE, MOBILE]], [ /(blackberry)[\s-]?(\w+)/i, // BlackBerry