aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'webpack')
-rw-r--r--webpack/webpack.common.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index cacb07ba..6e0dd56f 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-var-requires */
const webpack = require("webpack");
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
@@ -84,12 +85,12 @@ module.exports = env => ({
if (env.browser.toLowerCase() === "safari") {
parsed.fullName.message = parsed.fullName.message.match(/^.+(?= -)/)?.[0] || parsed.fullName.message;
if (parsed.fullName.message.length > 50) {
- parsed.fullName.message = parsed.fullName.message.substr(0, 47) + "...";
+ parsed.fullName.message = parsed.fullName.message.slice(0, 47) + "...";
}
parsed.Description.message = parsed.Description.message.match(/^.+(?=\. )/)?.[0] || parsed.Description.message;
if (parsed.Description.message.length > 80) {
- parsed.Description.message = parsed.Description.message.substr(0, 77) + "...";
+ parsed.Description.message = parsed.Description.message.slice(0, 77) + "...";
}
}