Skip to content
Snippets Groups Projects
Verified Commit af4e2bf6 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed regex syntax

parent 018446c5
Branches
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ func main() {
}
})
issueRegex := regexp.MustCompile("#\\d+(?=\\b)")
issueRegex := regexp.MustCompile("#\\d+\\b")
client.Handlers.Add(girc.PRIVMSG, func(client *girc.Client, event girc.Event) {
issues := issueRegex.FindAllString(event.Trailing, -1)
for _, idString := range issues {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment