Permalink
Browse files

Tests: Make the regex catching Safari 9.0/9.1 more resilient

The word boundary character will prevent iOS from being a false positive.
  • Loading branch information...
1 parent 234a2d8 commit 7f2ebd2c4dea186d7d981b939e6e2983a9d7f9c1 @mgol mgol committed May 2, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/support.js
@@ -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,

0 comments on commit 7f2ebd2

Please sign in to comment.