Fixed #249
This commit is contained in:
@@ -276,7 +276,7 @@ export function isFileIndexable(path: string): boolean {
|
|||||||
|
|
||||||
export function isFileImage(path: string): boolean {
|
export function isFileImage(path: string): boolean {
|
||||||
const ext = getExtension(path)
|
const ext = getExtension(path)
|
||||||
return ext === 'png' || ext === 'jpg' || ext === 'jpeg'
|
return ext === 'png' || ext === 'jpg' || ext === 'jpeg' || ext === 'webp'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isFilePDF(path: string): boolean {
|
export function isFilePDF(path: string): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user