Commit 6ae1cb3f authored by Eugene Shapovalov's avatar Eugene Shapovalov 💬

Fixed bug associated with markdown image url regex.

parent 39152b27
......@@ -5,9 +5,10 @@ import javax.inject.Inject
class MarkDownUrlResolver @Inject constructor() {
private val regex = Regex("^!\\[\\w+]\\(/uploads/\\w+/\\w+\\.\\w+\\)$")
private val regex = Regex("^!\\[.+]\\(/uploads/.+/.+\\.\\w{3,4}\\)$")
// ![CragHag](/uploads/69c4ef83b86c66eb3f147915d26c427e/CragHag.png) - before attach
// ![2018-09-03_15.26.43](/uploads/c1fc914375a3d975f12bb6d54d1ee8c8/2018-09-03_15.26.43.jpg)
// link to download
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment