author | Chris Jones <chris@cjones.org> |
Thu, 17 Oct 2013 22:41:08 -0600 | |
changeset 171 | 2f6ae54a2bd1 |
parent 170 | d496de556c9a |
child 172 | 36a42bc073f0 |
xmpp/structs.go | file | annotate | diff | comparison | revisions |
--- a/xmpp/structs.go Wed Oct 16 20:52:05 2013 -0600 +++ b/xmpp/structs.go Thu Oct 17 22:41:08 2013 -0600 @@ -162,8 +162,7 @@ return result } -// Set implements flag.Value. It returns true if it successfully -// parses the string. +// Set implements flag.Value. func (jid *JID) Set(val string) error { r := regexp.MustCompile("^(([^@/]+)@)?([^@/]+)(/([^@/]+))?$") parts := r.FindStringSubmatch(val)