]> 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:31:25 +0000 (23:31 +0200)
The word boundary character will prevent iOS from being a false positive.

(cherry-picked from 7f2ebd2c4dea186d7d981b939e6e2983a9d7f9c1)

test/unit/support.js

index f1ad75bb35b99ba53104591439d38c2bcfbb8871..e8d3715b8efdf19217fb41290bdeda3e0530ac40 100644 (file)
@@ -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,