diff options
author | Ajay <[email protected]> | 2024-01-16 18:37:37 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-01-16 18:39:29 -0500 |
commit | e489d0f91369229c5f4753fe6db5cc4f85131f58 (patch) | |
tree | 31807f21341f59cdf78b3923f3531735ecf9f9ff | |
parent | 814df465218d453184b7ffbc654c76078fb7a14c (diff) | |
download | SponsorBlock-e489d0f91369229c5f4753fe6db5cc4f85131f58.tar.gz SponsorBlock-e489d0f91369229c5f4753fe6db5cc4f85131f58.zip |
Fix german title not being shortened
-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) + "..."; } |