Fix breaking regex

The image upload regex breaks with the new path for uploads.

This commit fixes it.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2018-06-24 01:03:25 +02:00
parent a2608c319a
commit bf9400e107
No known key found for this signature in database
GPG key ID: 1F05CC3635CDDFFD

View file

@ -15,5 +15,5 @@ exports.uploadImage = function (imagePath, callback) {
return return
} }
callback(null, url.resolve(config.serverURL + '/', imagePath.match(/^public\/(.+$)/)[1])) callback(null, url.resolve(config.serverURL + '/', imagePath.match(/public\/(.+)$/)[1]))
} }