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

(cherry-picked from 7f2ebd2c4dea186d7d981b939e6e2983a9d7f9c1)

test/unit/support.js

index 155ebd54b4171cd53d97a96c06be4ed32a3511b5..b490190e86ebbdf2b343621af81d2bb9fb41c544 100644 (file)
@@ -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,