Skip to content

Commit bf9400e

Browse files
committed
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>
1 parent a2608c3 commit bf9400e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/web/imageRouter/filesystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ exports.uploadImage = function (imagePath, callback) {
1515
return
1616
}
1717

18-
callback(null, url.resolve(config.serverURL + '/', imagePath.match(/^public\/(.+$)/)[1]))
18+
callback(null, url.resolve(config.serverURL + '/', imagePath.match(/public\/(.+)$/)[1]))
1919
}

0 commit comments

Comments
 (0)