Merge pull request #858 from SISheogorath/fix/imgUpload
Fix breaking regex
This commit is contained in:
@@ -15,5 +15,5 @@ exports.uploadImage = function (imagePath, callback) {
|
||||
return
|
||||
}
|
||||
|
||||
callback(null, url.resolve(config.serverURL + '/', imagePath.match(/^public\/(.+$)/)[1]))
|
||||
callback(null, url.resolve(config.serverURL + '/', imagePath.match(/public\/(.+)$/)[1]))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user