;;;; This file is part of LilyPond, the GNU music typesetter.
;;;;
-;;;; Copyright (C) 2004--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+;;;; Copyright (C) 2004--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
;;;;
;;;; LilyPond is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
(let ((e '())
(c0 0)
(oct 0)
- (match (string-match "^(.*)([_^])([0-9]+)$" clef-name)))
+ (match (string-match "^(.*)([_^])([1-9][0-9]*)$" clef-name)))
(if match
(begin
(set! clef-name (match:substring match 1))