Skip to content

Commit

Permalink
Merge pull request kmille#19 from smoogan/fix-chord-parsing-for-aug7-…
Browse files Browse the repository at this point in the history
…and-half-diminished

Update chord parsing to handle `+` and `-` in chord symbols
  • Loading branch information
kmille authored Feb 25, 2024
2 parents fa4dddd + 3493125 commit 47b5b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__pycache__
TODOs
*.swp
2 changes: 1 addition & 1 deletion freetar/ug.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def fix_tab(self):
tab = tab.replace(" ", " ")
tab = tab.replace("[tab]", "")
tab = tab.replace("[/tab]", "")
tab = re.sub(r'\[ch\]([/#\w()]+)\[\/ch\]', r'<strong>\1</strong>', tab)
tab = re.sub(r'\[ch\]([/#\w()+-]+)\[\/ch\]', r'<strong>\1</strong>', tab)
self.tab = tab


Expand Down

0 comments on commit 47b5b22

Please sign in to comment.