Merge pull request #55 from mtlstats/fix-case

force player/goalie names to correct case when editing
This commit is contained in:
Jonathan Lamothe 2019-12-28 21:36:24 -05:00 committed by GitHub
commit eb4107365c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
## current ## current
- Don't show player number zero in reports - Don't show player number zero in reports
- Fixed player/goalie name capitalisation on edit
## 0.9.0 ## 0.9.0
- Bugfix: Display lifetime stats in report, not YTD - Bugfix: Display lifetime stats in report, not YTD

View File

@ -56,7 +56,7 @@ editGoalieNumberPrompt = numPrompt "Goalie number: " $
-- | Prompt to edit a goalie's name -- | Prompt to edit a goalie's name
editGoalieNamePrompt :: Prompt editGoalieNamePrompt :: Prompt
editGoalieNamePrompt = strPrompt "Goalie name: " $ editGoalieNamePrompt = namePrompt "Goalie name: " $
modify . editGoalieName modify . editGoalieName
-- | Prompt to edit a goalie's YTD games played -- | Prompt to edit a goalie's YTD games played

View File

@ -46,7 +46,7 @@ editPlayerNumPrompt = numPrompt "Player number: " $
-- | Prompt to edit a player's name -- | Prompt to edit a player's name
editPlayerNamePrompt :: Prompt editPlayerNamePrompt :: Prompt
editPlayerNamePrompt = strPrompt "Player name: " $ editPlayerNamePrompt = namePrompt "Player name: " $
editPlayer . (pName .~) editPlayer . (pName .~)
-- | Prompt to edit a player's position -- | Prompt to edit a player's position