Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
htmlhouse
/
htmlhouse
espelhamento de
https://github.com/writeas/htmlhouse
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
2
Atividade
Ver código fonte
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
6 anos atrás
pai
2caebcfecf
commit
7893f07a80
1 arquivos alterados
com
4 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+4
-0
filter.go
+ 4
- 0
filter.go
Ver arquivo
@@ -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
}
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar