From: Michał Gołębiowski Date: Mon, 2 May 2016 21:05:56 +0000 (+0200) Subject: Tests: Make the regex catching Safari 9.0/9.1 more resilient X-Git-Tag: 1.12.4~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fba81c09cc44f3a17341984de04a6b64c27471c1;p=jquery.git Tests: Make the regex catching Safari 9.0/9.1 more resilient The word boundary character will prevent iOS from being a false positive. (cherry-picked from 7f2ebd2c4dea186d7d981b939e6e2983a9d7f9c1) --- diff --git a/test/unit/support.js b/test/unit/support.js index 155ebd54b..b490190e8 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -416,7 +416,7 @@ testIframeWithCallback( "submit": true, "tbody": true }; - } else if ( /9(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /\b9\.\d(\.\d+)* safari/i.test( userAgent ) ) { expected = { "ajax": true, "appendChecked": true,