Skip to content

NIP-50: Adding regex extension #1480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions 50.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 which must be compatible with the PCRE flavor.