Diacritics substitution in prompt (#7205)

This commit is contained in:
Benjamin Levesque 2023-04-21 16:09:59 +02:00 committed by GitHub
parent 8b2cea1b8f
commit 7cfbf478d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 169 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/cli/cli/v2/api"
"github.com/cli/cli/v2/internal/ghrepo"
"github.com/cli/cli/v2/internal/prompter"
"github.com/cli/cli/v2/pkg/set"
"github.com/cli/cli/v2/pkg/surveyext"
)
@ -395,6 +396,7 @@ func multiSelectSurvey(message string, defaults, options []string) ([]string, er
Message: message,
Options: options,
Default: defaults,
Filter: prompter.LatinMatchingFilter,
}
err := survey.AskOne(q, &results)
return results, err