lib/browser_sniffer/patterns.rb in browser_sniffer-1.0.9 vs lib/browser_sniffer/patterns.rb in browser_sniffer-1.0.10
- old
+ new
@@ -84,10 +84,10 @@
], [[:name, 'Dolphin'], :version, :major], [
/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i # Chrome for Android/iOS
], [[:name, 'Chrome'], :version, :major, [:type, :chrome]], [
/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i # Mobile Safari
], [:version, :major, [:name, 'Mobile Safari'], [:type, :safari]], [
- /Mozilla\/5.0 \((?:iPhone|iPod(?: Touch)?);(.*)AppleWebKit\/((\d+)?[\w\.]+).+?(mobile)\/\w?/i # ios webview
+ /Mozilla\/5.0 \((?:iPhone|iPad|iPod(?: Touch)?);(.*)AppleWebKit\/((\d+)?[\w\.]+).+?(mobile)\/\w?/i # ios webview
], [:version, :major, [:name, 'Mobile Safari'], [:type, :safari]], [
/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i # Safari & Safari Mobile
], [:version, :major, :name, [:type, :safari]], [
/webkit.+?(mobile\s?safari|safari)((\/[\w]+))/i # Safari < 3.0
], [:name, [:major, STRING_MAP[:browser][:oldsafari][:major]], [:version, STRING_MAP[:browser][:oldsafari][:version]], [:type, :safari]], [