このサイトは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行の削除
分割表示
差分オプション
統計情報を表示
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
}
書き込み
プレビュー
読み込み中…
キャンセル
保存