Skip to content

Commit

Permalink
Merge pull request #23 from lumbric/patch-1
Browse files Browse the repository at this point in the history
Fix regex for match following a comma, fixes #17
  • Loading branch information
coreyhulen committed Sep 6, 2018
2 parents d40b747 + 7098534 commit 4933505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/autolinker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewAutoLinker(link *Link) (*AutoLinker, error) {
}

if !link.DisableNonWordSuffix {
link.Pattern = link.Pattern + "(?P<DisableNonWordSuffix>$|\\s|\\.|\\!|\\?)"
link.Pattern = link.Pattern + "(?P<DisableNonWordSuffix>$|\\s|\\.|\\!|\\?|\\,)"
link.Template = link.Template + "${DisableNonWordSuffix}"
}

Expand Down

0 comments on commit 4933505

Please sign in to comment.