Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
htmlhouse
/
htmlhouse
réplica de
https://github.com/writeas/htmlhouse
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
2
Actividad
Explorar el Código
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
hace 6 años
padre
2caebcfecf
commit
7893f07a80
Se han
modificado 1 ficheros
con
4 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+4
-0
filter.go
+ 4
- 0
filter.go
Ver fichero
@@ -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
}
Escribir
Vista previa
Cargando…
Cancelar
Guardar