mirror of
https://github.com/filegator/filegator.git
synced 2025-08-08 11:06:36 +02:00
fixes #46
This commit is contained in:
@@ -136,6 +136,9 @@ const funcs = {
|
||||
hasExtension(name, exts) {
|
||||
return (new RegExp('(' + exts.join('|').replace(/\./g, '\\.') + ')$', 'i')).test(name)
|
||||
},
|
||||
capitalize(string) {
|
||||
return string.charAt(0).toUpperCase() + string.slice(1)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user