summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSheogorath2018-06-24 01:03:25 +0200
committerSheogorath2018-06-24 01:03:45 +0200
commitbf9400e107f5378b502650a2223c238c3671e6b4 (patch)
tree5e850bd2e3320d6045c226e62a7341711214f134 /lib
parenta2608c319a8c31f9b173dbb5d00221d3ad96739b (diff)
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>
Diffstat (limited to '')
-rw-r--r--lib/web/imageRouter/filesystem.js2
1 files changed, 1 insertions, 1 deletions
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]))
}