From 729806b9b4c0a9f5a3172a6b9318115e013efb99 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 29 May 2019 12:16:40 +0200 Subject: [PATCH] fix lint & make regex more robust --- src/utils/FontManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/FontManager.js b/src/utils/FontManager.js index e51efb8a2c..c7a1f5e0b6 100644 --- a/src/utils/FontManager.js +++ b/src/utils/FontManager.js @@ -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];