Fixed gamebreaking bug inside InsertVariables method. I might need to write some unit tests for RuriLib soon...

This commit is contained in:
ruri
2019-05-06 13:55:08 +02:00
parent 2688614030
commit 3dd837cf24
2 changed files with 5 additions and 9 deletions
+2 -4
View File
@@ -278,7 +278,6 @@ namespace RuriLib
// L or R not present and not empty
else if ( ((!partial.Contains(ls) && ls != "") || (!partial.Contains(rs) && rs != "")))
{
list.Add("");
break;
}
@@ -350,7 +349,7 @@ namespace RuriLib
HtmlParser parser = new HtmlParser();
AngleSharp.Dom.Html.IHtmlDocument document = null;
try { document = parser.Parse(original); } catch { list.Add(""); }
try { document = parser.Parse(original); } catch { }
try
{
@@ -404,7 +403,7 @@ namespace RuriLib
}
}
}
catch { list.Add(""); }
catch { }
break;
@@ -415,7 +414,6 @@ namespace RuriLib
if (j.Key == ReplaceValues(jsonField, data))
list.Add(j.Value);
if (list.Count == 0) list.Add("");
break;
case ParseType.XPATH: