diff options
-rw-r--r-- | webpack/webpack.common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index e1a3e66c..189681c6 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -160,7 +160,7 @@ module.exports = env => { if (path.match(/(\/|\\)_locales(\/|\\).+/)) { const parsed = JSON.parse(content.toString()); if (env.browser.toLowerCase() === "safari") { - parsed.fullName.message = parsed.fullName.message.match(/^.+(?= -)/)?.[0] || parsed.fullName.message; + parsed.fullName.message = parsed.fullName.message.match(/^.+(?= [-–])/)?.[0] || parsed.fullName.message; if (parsed.fullName.message.length > 50) { parsed.fullName.message = parsed.fullName.message.slice(0, 47) + "..."; } |