mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
feat(parser): return 'Unknown' when unable to match for single pattern tests
This commit is contained in:
@@ -11,7 +11,7 @@ function matchPattern(
|
||||
return (
|
||||
Object.entries(patterns).find(([_, pattern]) =>
|
||||
pattern.test(filename)
|
||||
)?.[0] ?? ''
|
||||
)?.[0] ?? 'Unknown'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user