Skip to content

Commit 57931dc

Browse files
committed
qt/tonalunits: Require at least one digit for valid Tonal numbers
1 parent ae9a0ad commit 57931dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/tonalutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool TonalUtils::Supported()
3939
}
4040

4141
#define RE_TONAL_DIGIT "[\\d\\xe8e0-\\xe8ef\\xe9d0-\\xe9df]"
42-
static QRegExpValidator tv(QRegExp("-?(?:" RE_TONAL_DIGIT "+\\.?|" RE_TONAL_DIGIT "*\\." RE_TONAL_DIGIT "*)"), nullptr);
42+
static QRegExpValidator tv(QRegExp("-?(?:" RE_TONAL_DIGIT "+\\.?|" RE_TONAL_DIGIT "*\\." RE_TONAL_DIGIT "+)"), nullptr);
4343

4444
QValidator::State TonalUtils::validate(QString&input, int&pos)
4545
{

0 commit comments

Comments
 (0)