Update index.js
This commit is contained in:
parent
b054e3b310
commit
c11ba07555
1 changed files with 0 additions and 4 deletions
|
@ -4,10 +4,6 @@ let multer = require('multer');
|
|||
let db = require('../db');
|
||||
let fs = require('fs');
|
||||
|
||||
function extension(string) {
|
||||
return string.slice((string.lastIndexOf(".") - 2 >>> 0) + 2);
|
||||
}
|
||||
|
||||
function extension(str){
|
||||
let file = str.split('/').pop();
|
||||
return [file.substr(0,file.lastIndexOf('.')),file.substr(file.lastIndexOf('.'),file.length)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue