Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36b86fd

Browse files
author
xuxinhua
committed
bugfix
1 parent 1c02933 commit 36b86fd

File tree

1 file changed

+1
-1
lines changed
  • websites/code/studygolang/src/util

1 file changed

+1
-1
lines changed

websites/code/studygolang/src/util/tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ func EmbedWide(content string) string {
5050
return content
5151
}
5252

53-
reg := regexp.MustCompile(`<iframe .* src=.*(https://wide\.b3log\.org/playground.*\.go).*/iframe>`)
53+
reg := regexp.MustCompile(`<iframe.*src=.*(https://wide\.b3log\.org/playground.*\.go).*/iframe>`)
5454
return reg.ReplaceAllString(content, `<iframe src="$1?embed=true" width="100%" height="600"></iframe>`)
5555
}

0 commit comments

Comments
 (0)