0.12.0-8 Fix Path
This commit is contained in:
@@ -391,7 +391,9 @@ function inferMediaProfileFromFsTypeAndModel(rawFsType, rawModel) {
|
||||
}
|
||||
|
||||
function isLikelyExtensionlessDvdImageFile(filePath, knownSize = null) {
|
||||
if (path.extname(String(filePath || '')).toLowerCase() !== '') {
|
||||
const ext = path.extname(String(filePath || '')).toLowerCase();
|
||||
// Only treat as having a real extension if it looks like one (e.g. ".mkv", not ". 1")
|
||||
if (ext !== '' && /^\.[a-z0-9]+$/.test(ext)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user