chore: lint-format-docs-tests-bugfixes (#105)
* docs: add jsdoc * feat: change enums to as const objects * chore(test): add themeColors.test.ts * fix: fix tests and bugs with strings.ts util * fix: path alias imports and tsconfig file bug * fix: remove --max-warnings 0
This commit is contained in:
@@ -18,6 +18,8 @@ export function capitalize(input: string): string {
|
||||
}
|
||||
capitalized += ' ';
|
||||
}
|
||||
capitalized = capitalized.trim(); // Remove extra space
|
||||
|
||||
return capitalized;
|
||||
}
|
||||
|
||||
@@ -31,7 +33,7 @@ export function capitalizeFirstLetter(input: string): string {
|
||||
}
|
||||
|
||||
/**
|
||||
* Cuts the
|
||||
* Cuts the input string to the specified length and adds an ellipsis if the string is longer than the specified length.
|
||||
* @param input The string to ellipsify.
|
||||
* @param length The length of the string to return.
|
||||
* @returns The ellipsified string.
|
||||
|
||||
Reference in New Issue
Block a user