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

The word boundary character will prevent iOS from being a false positive.
This commit is contained in:
Michał Gołębiowski 2016-05-02 23:05:56 +02:00
parent 234a2d8280
commit 7f2ebd2c4d

View File

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