lib/browser_sniffer/patterns.rb in browser_sniffer-2.0.0 vs lib/browser_sniffer/patterns.rb in browser_sniffer-2.1.0
- old
+ new
@@ -155,9 +155,19 @@
/(gobrowser)\/?((\d+)?[\w\.]+)*/i, # GoBrowser
/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i, # ICE Browser
/(mosaic)[\/\s]((\d+)?[\w\.]+)/i # Mosaic
], [:name, :version, :major]
],
+ :in_app_browser => [
+ [
+ /FBAN\/FBIOS/,
+ /FB_IAB\/FB4A/,
+ /FBAN\/MessengerForiOS/,
+ /FB_IAB\/MESSENGER/,
+ ], [[:type, :facebook]], [
+ /Instagram/,
+ ], [[:type, :instagram]],
+ ],
:device => [
[
# Shopify Mobile for iPhone
%r{.*Shopify Mobile/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPhone)([\d,]+)}i
], [[:type, :handheld], :model], [