diff --git a/patacrep/songs/chordpro/syntax.py b/patacrep/songs/chordpro/syntax.py index 80baf66f..582bae41 100644 --- a/patacrep/songs/chordpro/syntax.py +++ b/patacrep/songs/chordpro/syntax.py @@ -73,7 +73,7 @@ class ChordproParser(Parser): else: frets = [] for fret in groups['frets'].split(): - if fret == "x": + if fret in "xX": frets.append(None) else: frets.append(int(fret)) @@ -112,7 +112,7 @@ class ChordproParser(Parser): ^ (?P[^\ ]*)\ * (base-fret\ *(?P[2-9]))?\ * - frets\ *(?P((\d+|x)\ *)+)\ * + frets\ *(?P((\d+|x|X)\ *)+)\ * (fingers\ *(?P(([0-4-])\ *)*))? $ """,