From 17cbd068b9decb87256ab96ec84e5a63e10640a9 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 8 Sep 2024 01:32:58 -0400 Subject: Add size limit to description for edge --- webpack/webpack.common.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js index 6ba75b12..d17ec1b2 100644 --- a/webpack/webpack.common.js +++ b/webpack/webpack.common.js @@ -170,6 +170,13 @@ module.exports = env => { parsed.Description.message = parsed.Description.message.slice(0, 77) + "..."; } } + + if (env.browser.toLowerCase() === "edge") { + parsed.Description.message = parsed.Description.message.match(/^.+(?=\. )/)?.[0] || parsed.Description.message; + if (parsed.Description.message.length > 132) { + parsed.Description.message = parsed.Description.message.slice(0, 129) + "..."; + } + } return Buffer.from(JSON.stringify(parsed)); } -- cgit v1.2.3