X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=nsfw%2FREADME;h=e4a8b9d3188a0eef11fd71c4fce0b0a754580691;hb=0ea84cfb66366edbbe333e9fe3db6a35d07a9c17;hp=e42c2128c7e05e0770663746a2035be8113a2236;hpb=791579f10b47b45369f0cbbe02bf6e5f3e558828;p=friendica-addons.git diff --git a/nsfw/README b/nsfw/README old mode 100755 new mode 100644 index e42c2128..e4a8b9d3 --- a/nsfw/README +++ b/nsfw/README @@ -6,7 +6,7 @@ Scans the message content for the string 'nsfw' (case insensitive) and if found replaces the content with a "click to open/close" link, default is closed. -If you click on the 'Not safe for work' plugin under +If you click on the 'Not safe for work' addon under /settings/addon a text field appears, where you can extend the list of search terms. The terms must be seperated by commas. @@ -47,7 +47,25 @@ done with a single regex, which matches all of them: Another use case could be, that you are simply not interested in postings about christmas. - /christmas([-_ ]?(tree|time|eve|pudding))?/ + /christmas(?:[-_ ]?(?:tree|time|eve|pudding))?/ + + +ATTENTION: + +It is absolutely important, that you use grouping +parentheses instead of capturing parentheses!! + +Grouping parentheses are: + + (?: ) + +If you use capturing parentheses, which are + + ( ) + +it will produce errors and the regex won't work and +at least your targets will not get collapsed. + 3)