You've already forked macports-contrib
mirror of
https://github.com/macports/macports-contrib.git
synced 2026-07-12 18:18:45 -07:00
mpbot: fix regex
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user