From cef91d270c0ceae11c11c40d8e355e3dbee6beeb Mon Sep 17 00:00:00 2001 From: Snake707 <28wl.snake707@gmail.com> Date: Fri, 29 Aug 2025 07:35:06 +0200 Subject: [PATCH] fixed delimiter bug --- src/scripts/choices.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/choices.ts b/src/scripts/choices.ts index e6d8253a..b3c1c1dd 100644 --- a/src/scripts/choices.ts +++ b/src/scripts/choices.ts @@ -1778,7 +1778,10 @@ class Choices { return; } - this._addChoice(mapInputToChoice(value, false, this.config.allowHtmlUserInput), true, true); + value.split(this.config.delimiter) + .map((e: string) => mapInputToChoice(e.trim(), false, this.config.allowHtmlUserInput)) + .forEach((elementItem: ChoiceFull) => this._addChoice(elementItem, true, true)); + addedItem = true; }