Skip to content

Commit

Permalink
update: bad words
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Apr 17, 2020
1 parent 9ab7941 commit b6a165c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ interface ICommentProps {
item: any;
}

const Comment: React.SFC<ICommentProps> = ({ item }) => {
const Comment: React.FunctionComponent<ICommentProps> = ({ item }) => {
const classes = useStyles();
const badWords = [
'墙',
Expand All @@ -74,7 +74,10 @@ const Comment: React.SFC<ICommentProps> = ({ item }) => {
'醋意',
'P站',
'滚粗',
'垃圾'
'垃圾',
'交流群',
'QQ',
'广告'
];
for (const badWord of badWords) {
if (
Expand Down

0 comments on commit b6a165c

Please sign in to comment.