From bf9400e107f5378b502650a2223c238c3671e6b4 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sun, 24 Jun 2018 01:03:25 +0200 Subject: Fix breaking regex The image upload regex breaks with the new path for uploads. This commit fixes it. Signed-off-by: Sheogorath --- lib/web/imageRouter/filesystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/web/imageRouter') diff --git a/lib/web/imageRouter/filesystem.js b/lib/web/imageRouter/filesystem.js index 145876a9..4bf82b31 100644 --- a/lib/web/imageRouter/filesystem.js +++ b/lib/web/imageRouter/filesystem.js @@ -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])) } -- cgit v1.2.3