This commit is contained in:
Linda_pp 2022-09-30 17:19:53 +09:00 committed by GitHub
commit 3d45296f62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,7 +252,7 @@ func (s *linkifyParser) Parse(parent ast.Node, block text.Reader, pc parser.Cont
} }
at := bytes.IndexByte(line, '@') at := bytes.IndexByte(line, '@')
m = []int{0, stop, at, stop - 1} m = []int{0, stop, at, stop - 1}
if m == nil || bytes.IndexByte(line[m[2]:m[3]], '.') < 0 { if bytes.IndexByte(line[m[2]:m[3]], '.') < 0 {
return nil return nil
} }
lastChar := line[m[1]-1] lastChar := line[m[1]-1]