]> source.dussan.org Git - jquery.git/commitdiff
Tests: Make the regex catching Safari 9.0/9.1 more resilient
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 2 May 2016 21:05:56 +0000 (23:05 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 2 May 2016 21:05:56 +0000 (23:05 +0200)
The word boundary character will prevent iOS from being a false positive.

test/unit/support.js

index 88aa49e55131d7042034f3cd8ff7a534972c5e12..e6f292ad6ec37e8c76f072acaa232e13aab89f0c 100644 (file)
@@ -130,7 +130,7 @@ testIframe(
                        "radioValue": true,
                        "reliableMarginLeft": true
                };
-       } else if ( /9(\.\d+|) safari/i.test( userAgent ) ) {
+       } else if ( /\b9\.\d(\.\d+)* safari/i.test( userAgent ) ) {
                expected = {
                        "ajax": true,
                        "boxSizingReliable": true,