all repos — grayfriday @ d4ee3ea08bf2f1471dbf7846090d9dd931609968

blackfriday fork with a few changes

Simplify return value
Vytautas Ĺ altenis vytas@rtfb.lt
Wed, 28 Oct 2015 21:21:51 +0200
commit

d4ee3ea08bf2f1471dbf7846090d9dd931609968

parent

4b26653fe00067c22322249d58654737e44b0dfb

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M inline.goinline.go

@@ -661,10 +661,7 @@ }

func linkEndsWithEntity(data []byte, linkEnd int) bool { entityRanges := htmlEntity.FindAllIndex(data[:linkEnd], -1) - if entityRanges != nil && entityRanges[len(entityRanges)-1][1] == linkEnd { - return true - } - return false + return entityRanges != nil && entityRanges[len(entityRanges)-1][1] == linkEnd } func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {