Skip to content

Commit 1844f6b

Browse files
committed
🛠️ Improve logging format for parseSvgFilename utility
1 parent e2c2ca9 commit 1844f6b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utils/parseSvgFilename.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export const parseSvgFilename = (params: ParseSvgFilename): string => {
1313

1414
if (/^\d/.test(component)) {
1515
if (log) {
16-
console.log(`[⚠️] Component name starts with a number: ${component}`);
16+
console.log(
17+
`\n - [⚠️] Component name starts with a number: ${component}`,
18+
);
1719
}
1820
component = "Icon" + component;
1921
}
@@ -33,7 +35,9 @@ export const parseSvgFilename = (params: ParseSvgFilename): string => {
3335
]);
3436
if (reserved.has(component)) {
3537
if (log) {
36-
console.log(`[⚠️] Component name is a reserved keyword: ${component}`);
38+
console.log(
39+
`\n - [⚠️] Component name is a reserved keyword: ${component}`,
40+
);
3741
}
3842
component = "Icon" + component[0].toUpperCase() + component.slice(1);
3943
}

0 commit comments

Comments
 (0)