diff --git a/src/core/transform/common.ts b/src/core/transform/common.ts index 04480b7..ae7d445 100644 --- a/src/core/transform/common.ts +++ b/src/core/transform/common.ts @@ -17,6 +17,14 @@ export function genConsoleString(genContext: GenContext) { const fileName = getExtendedPath(filePath, extendedPathFileNames) const fileType = extname(filePath) + // Parsing escaped unicode symbols + try { + argsName = JSON.parse(`"${argsName}"`) + } + catch (error) { + + } + if (argsName?.length > 30) argsName = `${argsName.slice(0, 30)}...`