This commit is contained in:
parent
2bc5419fc4
commit
ca57b910de
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ func (fileContent *FileContent) FormatContent() string {
|
||||||
|
|
||||||
var buffer []byte
|
var buffer []byte
|
||||||
data := []byte(content)
|
data := []byte(content)
|
||||||
re := regexp.MustCompile(`!?\[([^\]*]*)\]\(([^ ]*)\)`)
|
re := regexp.MustCompile(`!?\[([^\]*]*)\]\(([^ ]*?)\)`)
|
||||||
|
|
||||||
for i, match := range re.FindAllSubmatch(data, -1) {
|
for i, match := range re.FindAllSubmatch(data, -1) {
|
||||||
if "!" == string(match[0][0:1]) {
|
if "!" == string(match[0][0:1]) {
|
||||||
|
|
Loading…
Reference in a new issue