// MatchNamespace tests the message's namespace against the provided Regexp
MatchNamespace tests the message's namespace against the provided Regexp
// MatchNamespace tests the message ' s namespace against the provided Regexp
func (m *Msg) MatchNamespace(nsFilter *regexp.Regexp) (bool, error) {
	_, ns, err := m.SplitNamespace()
	if err != nil {
		return false, err
	}
	return nsFilter.MatchString(ns), nil
}
func ( m * Msg ) MatchNamespace ( nsFilter * regexp . Regexp ) ( bool , error ) { _ , ns , err := m . SplitNamespace ( ) if err != nil { return false , err } return nsFilter . MatchString ( ns ) , nil }
MatchNamespace tests the message's namespace against the provided Regexp
MatchNamespace tests the message ' s namespace against the provided Regexp