本網站在啟用 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 Options
Show Stats
Download Patch File
Download Diff File
+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
}
Write
Preview
Loading…
取消
儲存