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: 2.2.4~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b052e16cd35ba430e93738e90a628c638c335d41;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 f1ad75bb3..e8d3715b8 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -150,7 +150,7 @@ testIframeWithCallback( "reliableMarginLeft": true, "reliableMarginRight": true }; - } else if ( /9(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /\b9\.\d(\.\d+)* safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true,