1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

add validationtextarea control, use it for filter match editor

This commit is contained in:
Andrew Dolgov
2020-02-28 13:53:45 +03:00
parent 2fefb4fd87
commit f24ece85a6
5 changed files with 43 additions and 27 deletions

View File

@@ -1343,6 +1343,7 @@ class RSSUtils {
foreach ($filter["rules"] as $rule) {
$match = false;
$reg_exp = str_replace('/', '\/', $rule["reg_exp"]);
$reg_exp = str_replace("\n", "", $reg_exp); // reg_exp may be formatted with CRs now because of textarea, we need to strip those
$rule_inverse = $rule["inverse"];
if (!$reg_exp)