mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-01 09:50:26 +01:00
[#164] serve common media files inline and fix svg content-type
This commit is contained in:
1 parent
1a5180d7d3
commit
5d8fc939e2
15 files changed
+138
-57
No files matched your search
@@ -789,7 +789,7 @@ export default class CommonHelper {
|
||||
* @return {Boolean}
|
||||
*/
|
||||
static hasImageExtension(filename) {
|
||||
return /\.jpg|\.jpeg|\.png|\.svg|\.webp|\.avif$/.test(filename)
|
||||
return /\.jpg|\.jpeg|\.png|\.svg|\.gif|\.webp|\.avif$/.test(filename)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user