diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-05-02 23:05:56 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-05-02 23:31:25 +0200 |
commit | b052e16cd35ba430e93738e90a628c638c335d41 (patch) | |
tree | 8a5db81fdf90ea2f013e437e1fb57721bb6e82f2 | |
parent | b9272aaedcc63a37c859e07418bce4ad5a874571 (diff) | |
download | jquery-b052e16cd35ba430e93738e90a628c638c335d41.tar.gz jquery-b052e16cd35ba430e93738e90a628c638c335d41.zip |
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)
-rw-r--r-- | test/unit/support.js | 2 |
1 files changed, 1 insertions, 1 deletions
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, |