mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Cardigann: fix {{ if }} regex
This commit is contained in:
@@ -270,7 +270,7 @@ namespace Jackett.Indexers
|
|||||||
}
|
}
|
||||||
|
|
||||||
// handle if ... else ... expression
|
// handle if ... else ... expression
|
||||||
Regex IfElseRegex = new Regex(@"{{if\s*(.+?)\s*}}(.*?){{\s*else\s*}}(.*?){{\s*end\s*}}");
|
Regex IfElseRegex = new Regex(@"{{\s*if\s*(.+?)\s*}}(.*?){{\s*else\s*}}(.*?){{\s*end\s*}}");
|
||||||
var IfElseRegexMatches = IfElseRegex.Match(template);
|
var IfElseRegexMatches = IfElseRegex.Match(template);
|
||||||
|
|
||||||
while (IfElseRegexMatches.Success)
|
while (IfElseRegexMatches.Success)
|
||||||
|
Reference in New Issue
Block a user