Use string concatenation instead
This commit is contained in:
parent
d25207923c
commit
e5b3a90fae
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ export function formatName(serviceName: string, description: string, unit: strin
|
|||
.filter(isType('string'))
|
||||
.map((v) => camelCaseToSnakeCase(v))
|
||||
// Remove duplicate prefix
|
||||
.reduce((carry, value) => (value.startsWith(carry) ? value : carry + '_' + value))
|
||||
.reduce((carry, value) => (value.startsWith(carry) ? value : `${carry}_${value}`))
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue