#256 - Support for .loom files for the Dataloom plugin
This commit is contained in:
@@ -270,6 +270,7 @@ export function isFileIndexable(path: string): boolean {
|
||||
return (
|
||||
isFilePlaintext(path) ||
|
||||
isFileCanvas(path) ||
|
||||
isFileFromDataloomPlugin(path) ||
|
||||
(canIndexPDF && isFilePDF(path)) ||
|
||||
(canIndexImages && isFileImage(path))
|
||||
)
|
||||
@@ -292,6 +293,10 @@ export function isFileCanvas(path: string): boolean {
|
||||
return path.endsWith('.canvas')
|
||||
}
|
||||
|
||||
export function isFileFromDataloomPlugin(path: string): boolean {
|
||||
return path.endsWith('.loom')
|
||||
}
|
||||
|
||||
export function getExtension(path: string): string {
|
||||
const split = path.split('.')
|
||||
return split[split.length - 1] ?? ''
|
||||
|
||||
Reference in New Issue
Block a user