summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-06-24 01:32:28 +0200
committerGitHub2018-06-24 01:32:28 +0200
commit050146e62cc9e1287db4a76fe6d8d5b8db776577 (patch)
treef605b32feb13e8104cbe94f11664b0e50c989840 /lib
parent7c7cc289f2c2b2e33a32ea32a6e97ea1410cc63e (diff)
parentbf9400e107f5378b502650a2223c238c3671e6b4 (diff)
Merge pull request #858 from SISheogorath/fix/imgUpload
Fix breaking regex
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]))
}