mirror of https://github.com/vector-im/riot-web
fix lint & make regex more robust
parent
18697d8ee7
commit
3014180762
|
@ -23,7 +23,7 @@ limitations under the License.
|
|||
|
||||
function safariVersionCheck(ua) {
|
||||
try {
|
||||
const safariVersionMatch = ua.match(/Mac OS X ([\d|_]+).*Version\/([\d|\.]+) Safari/);
|
||||
const safariVersionMatch = ua.match(/Mac OS X ([\d|_]+).*Version\/([\d|.]+).*Safari/);
|
||||
if (safariVersionMatch) {
|
||||
const macOSVersionStr = safariVersionMatch[1];
|
||||
const safariVersionStr = safariVersionMatch[2];
|
||||
|
|
Loading…
Reference in New Issue