Browse Source

Corrected regular expression: can be 1 or 2 repetitions (not *exactly* 2)

pull/79/head
Louis 9 years ago
parent
commit
cf36fbbd9c
  1. 2
      patacrep/songs/chordpro/syntax.py

2
patacrep/songs/chordpro/syntax.py

@ -111,7 +111,7 @@ class ChordproParser(Parser):
r"""
^
(?P<key>[^\ ]*)\ *
(base-fret\ *(?P<basefret>\d{2}))?\ *
(base-fret\ *(?P<basefret>\d{1,2}))?\ *
frets\ *(?P<frets>((\d+|x|X)\ *)+)\ *
(fingers\ *(?P<fingers>(([0-4-])\ *)*))?
$

Loading…
Cancel
Save