Commit aa32368d by Urvil Shah

Add the guard.

parent 65445ce5
Pipeline #7264 passed with stages
in 22 minutes 32 seconds
...@@ -158,10 +158,14 @@ namespace Mobile.Search.Web.Controllers ...@@ -158,10 +158,14 @@ namespace Mobile.Search.Web.Controllers
TimeSpan.FromSeconds(1)); TimeSpan.FromSeconds(1));
while (m.Success) while (m.Success)
{ {
string to_replace = String.Format("{{{{WrapUrl('{0}')}}}}", m.Groups[1]); if(!m.Value.Contains("WrapUrl"))
value = value.Replace(m.Groups[1].Value, to_replace); {
string to_replace = String.Format("{{{{WrapUrl('{0}')}}}}", m.Groups[1]);
value = value.Replace(m.Groups[1].Value, to_replace);
}
m = m.NextMatch(); m = m.NextMatch();
}
}
var d = new Dictionary<string, object> var d = new Dictionary<string, object>
{ {
{"templateKey", key.ToLower()}, {"templateKey", key.ToLower()},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment