code: func (gw *Gateway) ignoreText(text string, input []string) bool {
  	for _, entry := range input {
  		if entry == "" {
  			continue
  		}
  		// TODO do not compile regexps everytime
  		re, err := regexp.Compile(entry)
  		if err != nil {
  			gw.logger.Errorf("incorrect regexp %s", entry)
  			continue
  		}
  		if re.MatchString(text) {
  			gw.logger.Debugf("matching %s. ignoring %s", entry, text)
  			return true
  		}
  	}
  	return false
  }
docs: // ignoreText returns true if text matches any of the input regexes.