Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Problem The list of available keymaps contains some duplicated values. ## Solution Fix the regexp to obtain the layout and variant names from `localectl`. Now it allows layouts with dots (e.g., *lt.std*) and variants with dashes (e.g., *pt-nativo-epo*). Note for reviewers: regexp can be checked with https://rustexp.lpil.uk/. ## Testing * Added new unit tests. * Tested manually. ## Screenshots <details> <summary>Toggle</summary> ![localhost_8080_(iPad Mini) (23)](https://github.com/openSUSE/agama/assets/1112304/eaabbb77-59ea-49c7-9628-1aed4f5e1229) ![localhost_8080_(iPad Mini) (22)](https://github.com/openSUSE/agama/assets/1112304/a8f161bb-f429-4c5d-b323-4b2f6c01eb53) </details>
- Loading branch information