Finally got rid of the camelCase2Readable Utils function.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2024-10-26 05:55:34 +02:00
parent 2594fd6844
commit c39498c60f
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
35 changed files with 20 additions and 32 deletions

View file

@ -401,18 +401,6 @@ export function parseName(str, removeUnallowed = true) {
return str
}
/**
* Transforms camel case strings to a space separated one.
*
* @deprecated
* @param {string} label - Camel case to parse
* @returns {string} Parsed label.
*/
export function camelCase2readable(label) {
let parsed = parseName(label, false)
return parsed.charAt(0).toLatinUppercase() + parsed.slice(1).replace(/([A-Z])/g, " $1")
}
/**
* Creates a randomized color string.
* @returns {string}