This commit is contained in:
Simon Cambier
2023-07-28 11:34:31 +02:00
parent fe76932b12
commit 8542a47d45
2 changed files with 4 additions and 5 deletions

View File

@@ -358,11 +358,10 @@ export function splitCamelCase(text: string): string[] {
* @param text
*/
export function splitHyphens(text: string): string[] {
const split = text.split('-').filter(t => t)
if (split.length > 1) {
return split
if (!text.includes('-')) {
return []
}
return []
return text.split('-').filter(t => t)
}
export function logDebug(...args: any[]): void {