Commit e0ae4dca authored by Urs Fleisch's avatar Urs Fleisch

Make tag from filename work for one character titles, artists.

See https://sourceforge.net/p/kid3/discussion/241227/
parent cef7ec4e
......@@ -577,7 +577,7 @@ void TaggedFile::getTagsFromFilename(FrameCollection& frames, const QString& fmt
pattern.replace(percentIdx, closingBracePos - percentIdx + 2, QLatin1String("(\\d{1,4})"));
percentIdx += 9;
} else {
pattern.replace(percentIdx, closingBracePos - percentIdx + 2, QLatin1String("([^-_\\./ ][^/]*[^-_/ ])"));
pattern.replace(percentIdx, closingBracePos - percentIdx + 2, QLatin1String("([^-_\\./ ](?:[^/]*[^-_/ ])?)"));
percentIdx += 23;
}
} else {
......
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