Skip to content

Commit aa05b0d

Browse files
committed
Add comment on why not to load font-family for all fonts
1 parent 06cd795 commit aa05b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default {
310310
.map((file) => {
311311
return {
312312
fileName: file.name,
313-
displayName: file.name.replace(".svg", "").replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'),
313+
displayName: file.name.replace(".svg", "").replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'), // Need to use file name instead of font-family as we don't want to load and parse all files at once. Might me something for the future.
314314
basePath: basePath,
315315
};
316316
})

0 commit comments

Comments
 (0)