Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
htmlhouse
/
htmlhouse
espelho de
https://github.com/writeas/htmlhouse
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
2
Trabalho
Ver a proveniência
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
há 6 anos
ascendente
2caebcfecf
cometimento
7893f07a80
1 ficheiros alterados
com
4 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+4
-0
filter.go
+ 4
- 0
filter.go
Ver ficheiro
@@ -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é-visualizar
Carregando…
Cancelar
Guardar