mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 19:54:10 +00:00
refactor: fix lint on lib/utils.js
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
d3fc6f58e3
commit
fffefcc5f8
@ -7,7 +7,7 @@ exports.isSQLite = function isSQLite (sequelize) {
|
||||
}
|
||||
|
||||
exports.getImageMimeType = function getImageMimeType (imagePath) {
|
||||
var fileExtension = /[^.]+$/.exec(imagePath)
|
||||
const fileExtension = /[^.]+$/.exec(imagePath)
|
||||
|
||||
switch (fileExtension[0]) {
|
||||
case 'bmp':
|
||||
|
Loading…
x
Reference in New Issue
Block a user