feat: use more flexible splitter.
This commit is contained in:
@@ -274,8 +274,7 @@ public class TagInput : TemplatedControl
|
|||||||
}
|
}
|
||||||
else if (AcceptsReturn && args.Key==Key.Enter)
|
else if (AcceptsReturn && args.Key==Key.Enter)
|
||||||
{
|
{
|
||||||
var texts = _textBox.Text?.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries) ??
|
var texts = _textBox.Text?.Split(["\r", "\n"], StringSplitOptions.RemoveEmptyEntries) ?? [];
|
||||||
[];
|
|
||||||
foreach (var text in texts)
|
foreach (var text in texts)
|
||||||
{
|
{
|
||||||
AddTags(text);
|
AddTags(text);
|
||||||
|
|||||||
Reference in New Issue
Block a user