diff options
author | Christoph (Sheogorath) Kern | 2018-06-24 01:32:28 +0200 |
---|---|---|
committer | GitHub | 2018-06-24 01:32:28 +0200 |
commit | 050146e62cc9e1287db4a76fe6d8d5b8db776577 (patch) | |
tree | f605b32feb13e8104cbe94f11664b0e50c989840 /lib/web/imageRouter/filesystem.js | |
parent | 7c7cc289f2c2b2e33a32ea32a6e97ea1410cc63e (diff) | |
parent | bf9400e107f5378b502650a2223c238c3671e6b4 (diff) |
Merge pull request #858 from SISheogorath/fix/imgUpload
Fix breaking regex
Diffstat (limited to 'lib/web/imageRouter/filesystem.js')
-rw-r--r-- | lib/web/imageRouter/filesystem.js | 2 |
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])) } |