mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-05 23:01:35 +00:00
Merge pull request #858 from SISheogorath/fix/imgUpload
Fix breaking regex
This commit is contained in:
commit
050146e62c
1 changed files with 1 additions and 1 deletions
|
@ -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]))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue