mirror of https://github.com/status-im/codimd.git
Merge pull request #858 from SISheogorath/fix/imgUpload
Fix breaking regex
This commit is contained in:
commit
050146e62c
|
@ -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 New Issue