Ran formatter, removed unused array and updated APIModel.ts

This commit is contained in:
ltctceplrm 2024-03-16 14:18:14 +01:00
parent f52060482a
commit 5eec98d127
8 changed files with 44 additions and 45 deletions

View file

@ -28,7 +28,7 @@ export class MediaTypeManager {
mediaTemplateMap: Map<MediaType, string>;
mediaFolderMap: Map<MediaType, string>;
constructor() {}
constructor() { }
updateTemplates(settings: MediaDbPluginSettings): void {
this.mediaFileNameTemplateMap = new Map<MediaType, string>();

View file

@ -207,7 +207,7 @@ export function unCamelCase(str: string): string {
// space before last upper in a sequence followed by lower
.replace(/\b([A-Z]+)([A-Z])([a-z])/, '$1 $2$3')
// uppercase the first character
.replace(/^./, function (str) {
.replace(/^./, function(str) {
return str.toUpperCase();
})
);