mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fixed the EXISTS condition when using dictionaries.
This commit is contained in:
@@ -221,12 +221,12 @@ namespace RuriLib
|
||||
if (args.Contains("(") && args.Contains(")"))
|
||||
{
|
||||
var dicKey = ParseArguments(args, '(', ')')[0];
|
||||
output = output.Replace(full, v.GetDictValue(dicKey));
|
||||
try { output = output.Replace(full, v.GetDictValue(dicKey)); } catch { }
|
||||
}
|
||||
else if (args.Contains("{") && args.Contains("}"))
|
||||
{
|
||||
var dicVal = ParseArguments(args, '{', '}')[0];
|
||||
output = output.Replace(full, v.GetDictKey(dicVal));
|
||||
try { output = output.Replace(full, v.GetDictKey(dicVal)); } catch { }
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user