Supercharged tags input

This commit is contained in:
Mehdi Benadel
2024-05-28 00:36:49 +02:00
parent 5cc130e417
commit cc75aadeb4
6 changed files with 318 additions and 47 deletions

View File

@ -605,7 +605,9 @@ export class DynamicTableFormElement extends LivechatElement {
rowById.row[propertyName] = value
} else {
rowById.row[propertyName] = (value as string)
.split(new RegExp(`/[${propertySchema.separators?.join('') ?? ''}]+/`))
.split(new RegExp(`(?:${propertySchema.separators
?.map((c: string) => c.replace(/^[.\\+*?[^\]$(){}=!<>|:-]$/, '\\'))
.join('|') ?? ''})+)`))
}
break
default: