Skip to content
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

Added examples to advanced content filter #1024

Merged
merged 4 commits into from Sep 26, 2020
Merged

Conversation

hoergen
Copy link
Contributor

@hoergen hoergen commented Sep 26, 2020

No description provided.

@tobiasd tobiasd merged commit 147ac6b into friendica:develop Sep 26, 2020
1. To block specific domains `body matches "/\\.example\\.com/"`
2. To block everything that contains the words `body matches "/Guten Morgen/"`
3. To block every occurence of the word facebook with a space in front and after the word `body matches "//s facebook/s /"`
4. To colapse every post that contains more than 1 image `body matches "/(?:(?:(?:\\[url(?:=.*)?\\])?\\[img(?:=.*)?\\].*\\[\\/img\\]\\s*(?:\\[\\/url\\])?)\\s*){2}/"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: collapse.


1. To block specific domains `body matches "/\\.example\\.com/"`
2. To block everything that contains the words `body matches "/Guten Morgen/"`
3. To block every occurence of the word facebook with a space in front and after the word `body matches "//s facebook/s /"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure it's /s? I feel like you're expecting the "any whitespace" character class but it would be \s, and in this case, possibly \\s because of the way we're entering the regular expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants