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 7f2ebd2c4d)
This commit is contained in:
Michał Gołębiowski 2016-05-02 23:05:56 +02:00
parent 9d41fc1466
commit fba81c09cc

View 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,