Add slash to the regexp

The regexp missed files with a '-'
wilder-portage
Tomaz Canabrava 6 years ago
parent 9c18672e34
commit 57dde9f146
  1. 2
      src/Filter.cpp

@ -538,7 +538,7 @@ FileFilter::FileFilter(Session *session) :
* on the HotSpot creation we verify if this is indeed a file, so there's
* no problem on testing on random words on the screen.
*/
QLatin1String(R"('[^']+'|"[^"]+"|[\w.~:]+)"),
QLatin1String(R"('[^']+'|"[^"]+"|[\w.~:-]+)"),
QRegularExpression::DontCaptureOption);
setRegExp(re);
}

Loading…
Cancel
Save