Fixed filer to accept anything before the first dot

When you have characters like `-` in the file name it should work.