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
1 changed files with 1 additions and 1 deletions

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