Support for DVR-MS files

@see https://www.filebot.net/forums/viewtopic.php?f=10&t=5582
This commit is contained in:
Reinhard Pointner 2018-01-01 23:37:42 +01:00
parent ab94a16705
commit aa656e075c
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ video/mp4: mp4 m4v 3gp
video/mov: mov
video/divx: divx
video/mpeg: mpg mpeg vob ts tp m2ts rec
video/wmv: wmv asf wtv
video/wmv: wmv asf wtv dvr-ms
video/WebM: webm
video/flash: flv
video/realmedia: rm rmvb rmp4

View File

@ -301,7 +301,7 @@ public final class FileUtilities {
*
* e.g. "file.txt" -> match "txt", ".hidden" -> no match
*/
public static final Pattern EXTENSION = Pattern.compile("(?<=.[.])\\p{Alnum}+$");
public static final Pattern EXTENSION = Pattern.compile("(?<=.[.])[\\p{Alnum}-]+$");
public static final String UNC_PREFIX = "\\\\";
public static String getExtension(File file) {