diff options
Diffstat (limited to 'modules/markup/common/linkify.go')
-rw-r--r-- | modules/markup/common/linkify.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/common/linkify.go b/modules/markup/common/linkify.go index 6ae70fba34..25621bf801 100644 --- a/modules/markup/common/linkify.go +++ b/modules/markup/common/linkify.go @@ -108,7 +108,7 @@ func (s *linkifyParser) Parse(parent ast.Node, block text.Reader, pc parser.Cont } at := bytes.IndexByte(line, '@') 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 } lastChar := line[m[1]-1] |