Tuning new regex policy.
parent
b578e499ac
commit
9f8791c8df
|
@ -6,7 +6,7 @@ const kv = await Deno.openKv();
|
||||||
export default class AppPolicy implements NPolicy {
|
export default class AppPolicy implements NPolicy {
|
||||||
async call(event: NostrEvent): Promise<NostrRelayOK> {
|
async call(event: NostrEvent): Promise<NostrRelayOK> {
|
||||||
const policy = new PipePolicy([
|
const policy = new PipePolicy([
|
||||||
new RegexPolicy(/This is a post from *(.+)/igm),
|
new RegexPolicy(/This is a post from *(.+)!/igm),
|
||||||
new KeywordPolicy([
|
new KeywordPolicy([
|
||||||
'NSFW sexual content',
|
'NSFW sexual content',
|
||||||
':nsfw:',
|
':nsfw:',
|
||||||
|
|
Loading…
Reference in New Issue