mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
chore(release): v0.1.1
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -50556,7 +50556,8 @@ async function runDescriptionChecks(settings, context, client) {
|
||||
});
|
||||
}
|
||||
if (settings.blockedTerms.length > 0) {
|
||||
const found = settings.blockedTerms.filter((term) => body.includes(term));
|
||||
const visibleBody = body.replace(/<!--[\s\S]*?-->/g, "");
|
||||
const found = settings.blockedTerms.filter((term) => visibleBody.includes(term));
|
||||
recordCheck(results, {
|
||||
name: "blocked-terms",
|
||||
passed: found.length === 0,
|
||||
|
||||
Reference in new issue
Block a user