mpbot: fix regex

This commit is contained in:
Joshua Root
2017-02-25 01:41:30 +11:00
parent e360a867e6
commit 9250417880
+1 -1
View File
@@ -312,7 +312,7 @@ class PortPlugin < Plugin
email = @registry["email_#{nick}"]
if email
name = @registry["name_#{nick}"]
text = callPort("echo", "maintainer:[\s{^]#{email}[\s}$]")
text = callPort("echo", "maintainer:(?:^|[\s{])#{email}(?:[\s}]|$)")
ports = text.split(/\s+/)
portCount = ports.size
showMax = 4