From 895299719c9073ab93a9c7c3d3b8282ea3cdfada Mon Sep 17 00:00:00 2001 From: Aroop Roelofs Date: Sun, 20 Aug 2023 23:41:38 +0200 Subject: [PATCH] Do a bit of refactoring --- utility/inflector.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utility/inflector.ts b/utility/inflector.ts index b5c272df..489b80e5 100644 --- a/utility/inflector.ts +++ b/utility/inflector.ts @@ -25,9 +25,10 @@ export class Inflector { * Turn a string into PascalCase. * * @param input + * @param delimiter Optional delimiter by which to split the string */ public static pascalize(input: string, delimiter: string = '_'): string { - return Inflector + return this .humanize(input, delimiter) .replaceAll(' ', ''); } @@ -56,7 +57,7 @@ export class Inflector { // Uppercase each of the tokens for(let i = 0; i < tokens.length; i++) { - tokens[i] = Inflector.ucfirst(tokens[i]); + tokens[i] = this.ucfirst(tokens[i]); } // Join tokens into a string and return