Skip to content

Commit f27b332

Browse files
authored
Merge pull request #292 from csfloat/feature/float-trigger-word
Adds "float" as a Warning Word in Comments
2 parents eb36ba4 + 7d5fb61 commit f27b332

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/profile/comment_warning.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class CommentWarning extends FloatElement {
5353
const text = this.getRawCommentBoxText();
5454
const words = new Set(text.toLowerCase().split(' '));
5555

56-
const hasTriggerWord = ['buy', 'sell', 'bought', 'sold', 'csfloat'].some((e) => words.has(e));
56+
const hasTriggerWord = ['buy', 'sell', 'bought', 'sold', 'csfloat', 'float'].some((e) => words.has(e));
5757
this.show = hasTriggerWord;
5858
}
5959

0 commit comments

Comments
 (0)