summaryrefslogtreecommitdiffstats
path: root/filewidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-12-09 05:09:09 +0100
committerArno <arno@disconnect.de>2018-12-09 05:09:09 +0100
commitde795b8ab7d061b6ef25233ef5faf699643bb81b (patch)
treeaa59cf49e1aa4c3a1fe54caf512df22127d25c36 /filewidget.h
parent18f15fc3be0c7c2847153672fbe86a53a8247b0c (diff)
downloadShemovCleaner-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