mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed gamebreaking bug inside InsertVariables method. I might need to write some unit tests for RuriLib soon...
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user