mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Ensure modifiers are lowercase when parsing
This commit is contained in:
parent
f9b79d24f8
commit
81e83fdf18
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ var modifierMap = map[string]Modifier{
|
|||
}
|
||||
|
||||
func parseModifier(text string) (*Modifier, error) {
|
||||
result, valid := modifierMap[text]
|
||||
lowertext := strings.ToLower(text)
|
||||
result, valid := modifierMap[lowertext]
|
||||
if !valid {
|
||||
return nil, fmt.Errorf("'%s' is not a valid modifier", text)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue