使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
htmlhouse
/
htmlhouse
镜像自地址
https://github.com/writeas/htmlhouse
关注
1
点赞
0
派生
0
代码
工单
0
版本发布
2
动态
浏览代码
Automatically pass public filter when no blacklist configured
pull/4/head
Matt Baer
6 年前
父节点
2caebcfecf
当前提交
7893f07a80
共有
1 个文件被更改
,包括
4 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+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
}
撰写
预览
正在加载...
取消
保存