@@ -136,20 +136,19 @@ Modifiers can be set up to modify the output of the feed.
136136
137137Two types of modifiers are available:
138138
139- * EXCLUDE_IF_TITLE_NOT_CONTAINS: Removes entries from the feed if the title not contain the trigger word .
140- * REPLACE_TITLE_IF_CONTAINS: Changes the title if it contains the trigger word .
139+ * EXCLUDE_IF_TITLE_NOT_CONTAINS: Removes entries from the feed if the title does not contain the pattern .
140+ * REPLACE_TITLE_IF_CONTAINS: Changes the title if it contains the pattern .
141141
142142Parameters:
143143
144144* type: EXCLUDE_IF_TITLE_NOT_CONTAINS or REPLACE_TITLE_IF_CONTAINS
145145* id: Unique identifier for the modifier.
146146* title: Display name when showing the modifier in the admin.
147- * description: Help text for the modifier.
147+ * description: Description of the modifier.
148148* activateInFeed: Should this filter be optional? If false the rule will always apply.
149- * trigger: The string that should trigger the modifier.
150- * replacement: The string to replace the title with.
151149* removeTrigger: Should the trigger word be filtered from the title?
152- * caseSensitive: Should the trigger word be case-sensitive?
150+ * pattern: The PCRE regular expression. See < https://www.php.net/manual/en/reference.pcre.pattern.syntax.php > .
151+ * replacement: The string to replace the title with. See < https://www.php.net/manual/en/function.preg-replace.php > .
153152
154153Examples of modifiers:
155154
@@ -161,29 +160,26 @@ Examples of modifiers:
161160 "title" : " Vis kun begivenheder med (liste) i titlen." ,
162161 "description" : " Denne mulighed fjerner begivenheder, der IKKE har (liste) i titlen. Den fjerner også (liste) fra titlen." ,
163162 "activateInFeed" : true ,
164- "trigger" : " (liste)" ,
165- "removeTrigger" : true ,
166- "caseSensitive" : false
163+ "pattern" : " \/\\ (liste\\ )\/ i" ,
164+ "removeTrigger" : true
167165 },
168166 {
169167 "type" : " REPLACE_TITLE_IF_CONTAINS" ,
170- "id" : " replaceIfContainsOptaget" ,
171168 "activateInFeed" : false ,
172- "trigger" : " (optaget)" ,
169+ "id" : " replaceIfContainsOptaget" ,
170+ "pattern" : " \/\\ (optaget\\ )\/ i" ,
173171 "replacement" : " Optaget" ,
174- "removeTrigger" : true ,
175- "caseSensitive" : false
172+ "removeTrigger" : true
176173 },
177174 {
178175 "type" : " REPLACE_TITLE_IF_CONTAINS" ,
179- "id" : " onlyShowAsOptaget" ,
180176 "activateInFeed" : true ,
177+ "id" : " onlyShowAsOptaget" ,
181178 "title" : " Overskriv alle titler med Optaget" ,
182179 "description" : " Denne mulighed viser alle titler som Optaget." ,
183- "trigger " : " " ,
180+ "pattern " : " \/\/ " ,
184181 "replacement" : " Optaget" ,
185- "removeTrigger" : false ,
186- "caseSensitive" : false
182+ "removeTrigger" : false
187183 }
188184]
189185```
0 commit comments