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