Support for DVR-MS files
@see https://www.filebot.net/forums/viewtopic.php?f=10&t=5582
This commit is contained in:
parent
ab94a16705
commit
aa656e075c
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue