diff options
author | Ajay <[email protected]> | 2024-01-16 18:37:37 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2024-01-16 18:37:37 -0500 |
commit | 5c30b985a0e227952cd7ba0b0083ac5dc9c59929 (patch) | |
tree | bbd44a6b1531893aef3b8a99538eeca471ef1ab7 | |
parent | 2bf6cf663b58fa46d2e5ce23823a38f8c2865b6a (diff) | |
download | SponsorBlock-5.5-safari.tar.gz SponsorBlock-5.5-safari.zip |
Fix german title not being shortened5.5-safari
-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) + "..."; } |