mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing unit tests
This commit is contained in:
@@ -53,9 +53,8 @@ namespace Orchard.Tokens.Implementation {
|
||||
var replacements = Evaluate(options.Predicate == null ? tokens : tokens.Where(options.Predicate), data);
|
||||
|
||||
return replacements.Aggregate(tokenset.Item1,
|
||||
(current, replacement) => replacement.Value == null ?
|
||||
current : current.Replace((hashMode ? "#{" : "{") + replacement.Key + "}",
|
||||
(options.Encoding ?? ReplaceOptions.NoEncode)(replacement.Key, replacement.Value)));
|
||||
(current, replacement) => current.Replace((hashMode ? "#{" : "{") + replacement.Key + "}",
|
||||
(options.Encoding ?? ReplaceOptions.NoEncode)(replacement.Key, replacement.Value ?? "")));
|
||||
}
|
||||
|
||||
private static Tuple<string, IEnumerable<string>> Parse(string text, bool hashMode) {
|
||||
|
||||
Reference in New Issue
Block a user