NIP-50: Adding regex extension

This commit is contained in:
kehiy 2024-09-04 02:24:30 +03:30
parent c02b161d9e
commit 8a362d68a1

11
50.md
View File

@ -48,8 +48,9 @@ Relays SHOULD exclude spam from search results by default if they support some f
## Extensions
Relay MAY support these extensions:
- `include:spam` - turn off spam filtering, if it was enabled by default
- `domain:<domain>` - include only events from users whose valid nip05 domain matches the domain
- `language:<two letter ISO 639-1 language code>` - include only events of a specified language
- `sentiment:<negative/neutral/positive>` - include only events of a specific sentiment
- `nsfw:<true/false>` - include or exclude nsfw events (default: true)
- `include:spam` - turn off spam filtering, if it was enabled by default.
- `domain:<domain>` - include only events from users whose valid nip05 domain matches the domain.
- `language:<two letter ISO 639-1 language code>` - include only events of a specified language.
- `sentiment:<negative/neutral/positive>` - include only events of a specific sentiment.
- `nsfw:<true/false>` - include or exclude nsfw events. (default: true)
- `regex:<regular-expression>` - A regex pattern to be searched.