Skip to content

Commit

Permalink
feat: 内容修改
Browse files Browse the repository at this point in the history
  • Loading branch information
梁怀刚 committed Jul 12, 2024
1 parent 2ab49b2 commit ec9f756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog/2023-02-13-mini-censor实现敏感词过滤.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ private filterFunc(word: string, every: boolean = false, replace: boolean = true
使用:

```typescript
let m = new Mint(['淘宝', '拼多多', '京东'])
let m = new Censor(['淘宝', '拼多多', '京东'])

console.log(m.filterSync('双十一在淘宝买东西,618在京东买东西,当然你也可以在拼多多买东西。'))
/* {
Expand Down
2 changes: 1 addition & 1 deletion docs/blog存档/mini-censor实现敏感词过滤.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ private filterFunc(word: string, every: boolean = false, replace: boolean = true
使用:

```typescript
let m = new Mint(['淘宝', '拼多多', '京东'])
let m = new Censor(['淘宝', '拼多多', '京东'])

console.log(m.filterSync('双十一在淘宝买东西,618在京东买东西,当然你也可以在拼多多买东西。'))
/* {
Expand Down

0 comments on commit ec9f756

Please sign in to comment.