aboutsummaryrefslogtreecommitdiff
path: root/virtual/packages/ttrss-af-feedmod_type_replace.patch
blob: d622577a8c3e3d48efe11b62b66323a5594f4739 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/init.php	2014-06-16 14:21:06.995480038 +0200
+++ b/init.php	2014-06-16 14:22:00.151027654 +0200
@@ -147,6 +147,9 @@
                         }
                     }
                     break;
+                case 'replace':
+                    $article['content'] = preg_replace("/".$config['pattern']."/",$config['replacement'],$article['content']);
+                    break;
 
                 default:
                     // unknown type or invalid config