mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-08-06 01:33:53 +09:00
Improve AI
This commit is contained in:
@ -25,6 +25,8 @@ export default function(text: string, words: (string | RegExp)[]): boolean {
|
||||
text = text
|
||||
.replace(/。$/, '')
|
||||
.replace(/です$/, '')
|
||||
.replace(/(\.|…)+$/, '')
|
||||
.replace(/[♪♥]+$/, '')
|
||||
.replace(/^藍/, '')
|
||||
.replace(/^ちゃん/, '')
|
||||
.replace(/、+$/, '');
|
||||
|
Reference in New Issue
Block a user