Commit 0eb51f49 authored by Don Gagne's avatar Don Gagne

Merge pull request #1316 from dogmaphobic/textToSpeechFixes

Text to speech tweaks
parents cef33ce0 6903ae32
...@@ -174,7 +174,7 @@ bool QGCAudioWorker::isMuted() ...@@ -174,7 +174,7 @@ bool QGCAudioWorker::isMuted()
} }
bool QGCAudioWorker::_getMillisecondString(const QString& string, QString& match, int& number) { bool QGCAudioWorker::_getMillisecondString(const QString& string, QString& match, int& number) {
QRegularExpression re("([0-9]*ms)"); static QRegularExpression re("([0-9]+ms)");
QRegularExpressionMatchIterator i = re.globalMatch(string); QRegularExpressionMatchIterator i = re.globalMatch(string);
while (i.hasNext()) { while (i.hasNext()) {
QRegularExpressionMatch qmatch = i.next(); QRegularExpressionMatch qmatch = i.next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment