mirror of
https://github.com/koishijs/novelai-bot
synced 2025-01-07 07:06:54 +08:00
fix: colons were accidentally removed (#255)
This commit is contained in:
parent
b27a02cf92
commit
28d3500af3
@ -438,7 +438,7 @@ export function parseForbidden(input: string) {
|
||||
.map<Forbidden>((pattern: string) => {
|
||||
const strict = pattern.endsWith('!')
|
||||
if (strict) pattern = pattern.slice(0, -1)
|
||||
pattern = pattern.replace(/[^a-z0-9\u00ff-\uffff]+/g, ' ').trim()
|
||||
pattern = pattern.replace(/[^a-z0-9\u00ff-\uffff:]+/g, ' ').trim()
|
||||
return { pattern, strict }
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user