Skip to content

Commit

Permalink
fix: extend application of flat/sharp chars
Browse files Browse the repository at this point in the history
  • Loading branch information
Brage Fuglseth committed Oct 23, 2023
1 parent bbea6fb commit 182e951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chord_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ pub fn prettify_chord_name(input: &str) -> String {
.enumerate()
.map(|tuple| match tuple {
(0, c) => c.to_ascii_uppercase(),
(1, '#') => '♯',
(1, 'b') => '♭',
(1|2, '#') => '♯',
(1|2, 'b') => '♭',
(_, c) => c,
})
.collect::<String>()
Expand Down

0 comments on commit 182e951

Please sign in to comment.