diff options
author | Arno <arno@disconnect.de> | 2018-12-09 05:09:09 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-12-09 05:09:09 +0100 |
commit | de795b8ab7d061b6ef25233ef5faf699643bb81b (patch) | |
tree | aa59cf49e1aa4c3a1fe54caf512df22127d25c36 /filewidget.h | |
parent | 18f15fc3be0c7c2847153672fbe86a53a8247b0c (diff) | |
download | ShemovCleaner-de795b8ab7d061b6ef25233ef5faf699643bb81b.tar.gz ShemovCleaner-de795b8ab7d061b6ef25233ef5faf699643bb81b.tar.bz2 ShemovCleaner-de795b8ab7d061b6ef25233ef5faf699643bb81b.zip |
Improve subject guessing
Use QRegularExpression instead of QRegExp, since the former is
recommended. Escape the filename, so we don't have to worry about
special chars and then match line by line. If there is a number at the
end of the found subject, remove it.
The former logic with QRegExp, indexOf and no escape wouldn't match
files with whitespaces and special chars...
Diffstat (limited to 'filewidget.h')
0 files changed, 0 insertions, 0 deletions