소스 검색

Automatically pass public filter when no blacklist configured

pull/4/head
Matt Baer 6 년 전
부모
커밋
7893f07a80
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. +4
    -0
      filter.go

+ 4
- 0
filter.go 파일 보기

@@ -1,6 +1,10 @@
package htmlhouse

func passesPublicFilter(app *app, html string) bool {
if app.cfg.BlacklistTerms == "" {
return true
}

spam := app.cfg.BlacklistReg.MatchString(html)
return !spam
}

불러오는 중...
취소
저장