Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search not working on the selectionprompt if you have [] characters in your string. #1653

Open
flupkede opened this issue Sep 23, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@flupkede
Copy link

flupkede commented Sep 23, 2024

Describe the bug
Adding [] characters in the string you add to the selectionprompt choices results in an error on invoking the search in the UI:
System.InvalidOperationException: 'Encountered malformed markup tag at position 4.'

To Reproduce
var testprompt = new SelectionPrompt() { SearchEnabled = true }
.Title("Test Search");
testprompt.AddChoice("[[01]] My first item");
testprompt.AddChoice("[[02]] My second item");
var result = _con.Prompt(testprompt);

Run the code and try to type in the search input.

Expected behavior
Search should work without formatting

Please upvote 👍 this issue if you are interested in it.

@flupkede flupkede added bug Something isn't working needs triage labels Sep 23, 2024
@github-project-automation github-project-automation bot moved this to Todo 🕑 in Spectre Console Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
Status: Todo 🕑
Development

No branches or pull requests

1 participant