Skip to content

Commit

Permalink
fix: it just works ¯\_(ツ)_/¯
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Oct 27, 2023
1 parent d79df1e commit 5b2733d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/sensitive-words-filter/MintFilterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default class MintFilterService {
.split('\n')
.map((i) => i.trim())
.filter((i) => !!i && !i.startsWith('//') && !i.startsWith('#'))
this.ctx.root.provide('mint', new Mint(words))
this.ctx.root.provide('mint')
this.ctx.root.mint = new Mint(words)
logger.info(
`filter loaded ${words.length} words in ${Date.now() - start}ms`
)
Expand Down

0 comments on commit 5b2733d

Please sign in to comment.