Skip to content

Commit b68eb54

Browse files
authored
Clusterfuzz found another way (#15160)
Clusterfuzz found another way so I found another way to stop it Signed-off-by: Andrew Thornton <[email protected]>
1 parent 0048d7c commit b68eb54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func RenderEmoji(
313313
return ctx.postProcess(rawHTML)
314314
}
315315

316-
var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />])|(/?[hH][eE][aA][dD][ />]))`)
316+
var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL]\b)|(/?[hH][eE][aA][dD]\b))`)
317317
var nulCleaner = strings.NewReplacer("\000", "")
318318

319319
func (ctx *postProcessCtx) postProcess(rawHTML []byte) ([]byte, error) {

0 commit comments

Comments
 (0)