mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 05:24:26 -05:00
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>
This commit is contained in:
parent
a2608c319a
commit
bf9400e107
1 changed files with 1 additions and 1 deletions
|
@ -15,5 +15,5 @@ exports.uploadImage = function (imagePath, callback) {
|
||||||
return
|
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