We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f6628e commit c8a6eb4Copy full SHA for c8a6eb4
js/logger.js
@@ -18,7 +18,12 @@
18
const file = line.getFileName();
19
if (file && !file.includes("node:") && !file.includes("js/logger.js") && !file.includes("node_modules")) {
20
const filename = file.replace(/.*\/(.*).js/, "$1");
21
- return styleText("grey", `[${filename}]`);
+ const filepath = file.replace(/.*\/(.*)\/.*.js/, "$1");
22
+ if (filepath === "js") {
23
+ return styleText("grey", `[${filename}]`);
24
+ } else {
25
+ return styleText("grey", `[${filepath}]`);
26
+ }
27
}
28
29
} catch (err) {
0 commit comments