From 144c295657f7da6480627e82ab09441983de5932 Mon Sep 17 00:00:00 2001 From: "Conrado @ VGS" <cmaggi@vgsglobal.com> Date: Mon, 22 May 2017 15:39:12 +0200 Subject: [PATCH] Update regex so returns when iOS version is greater than 10. --- libraries/jquery/defunkt-jquery-pjax/jquery.pjax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/jquery/defunkt-jquery-pjax/jquery.pjax.js b/libraries/jquery/defunkt-jquery-pjax/jquery.pjax.js index 77b6def1a..75be4e870 100644 --- a/libraries/jquery/defunkt-jquery-pjax/jquery.pjax.js +++ b/libraries/jquery/defunkt-jquery-pjax/jquery.pjax.js @@ -644,7 +644,7 @@ if ( $.inArray('state', $.event.props) < 0 ) $.support.pjax = window.history && window.history.pushState && window.history.replaceState // pushState isn't reliable on iOS until 5. - && !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/) + && !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/) // Fall back to normalcy for older browsers. if ( !$.support.pjax ) { -- GitLab