Merge pull request #858 from SISheogorath/fix/imgUpload

Fix breaking regex
This commit is contained in:
Christoph (Sheogorath) Kern
2018-06-24 01:32:28 +02:00
committed by GitHub

View File

@@ -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]))
}