Skip to content

Commit

Permalink
use only chord labels for 'annotated_key' metadata column if they spe…
Browse files Browse the repository at this point in the history
…cify a global key followed by . (a period)
  • Loading branch information
johentsch committed Dec 18, 2022
1 parent 80c67f1 commit 6ee64c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ms3/bs4_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ def _get_metadata(self):
for harmony_tag in self.soup.find_all('Harmony'):
label = harmony_tag.find('name')
if label is not None and label.string is not None:
m = re.match(r"^\.?([A-Ga-g](#+|b+)?)", label.string)
m = re.match(r"^\.?([A-Ga-g](#+|b+)?)\.", label.string)
if m is not None:
annotated_key = m.group(1)
break
Expand Down

0 comments on commit 6ee64c5

Please sign in to comment.