format
This commit is contained in:
parent
079d757009
commit
80d4f06962
2 changed files with 6 additions and 2 deletions
|
@ -19,7 +19,9 @@ function checkWordMute(
|
|||
): boolean {
|
||||
if (note == null) return false;
|
||||
|
||||
const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files.map((f) => f.comment ?? "").join(" ")}`.trim();
|
||||
const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files
|
||||
.map((f) => f.comment ?? "")
|
||||
.join(" ")}`.trim();
|
||||
if (text === "") return false;
|
||||
|
||||
for (const mutePattern of mutedWords) {
|
||||
|
|
|
@ -10,7 +10,9 @@ function checkWordMute(
|
|||
note: NoteLike,
|
||||
mutedWords: Array<string | string[]>,
|
||||
): Muted {
|
||||
const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files.map((f) => f.comment ?? "").join(" ")}`.trim();
|
||||
const text = `${note.cw ?? ""} ${note.text ?? ""} ${note.files
|
||||
.map((f) => f.comment ?? "")
|
||||
.join(" ")}`.trim();
|
||||
if (text === "") return NotMuted;
|
||||
|
||||
let result = { muted: false, matched: [] };
|
||||
|
|
Loading…
Reference in a new issue