From 4b7f98a9a68b494a8a68250d5fe40e78e79f2e09 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Tue, 8 Sep 2015 21:17:56 +0200 Subject: [PATCH] Allow capital 'X' when string is not played --- patacrep/songs/chordpro/syntax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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-])\ *)*))? $ """,