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
commit 050146e62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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