Update handlebars code to support Regex.Match (#201) (#202)

* #201

* Handlebars : Linq and JsonPath

* Rename to Regex.Match

* unit test coverage
This commit is contained in:
Stef Heyenrath
2018-09-11 08:42:50 +02:00
committed by GitHub
parent ec39d12cfe
commit da64934c13
11 changed files with 964 additions and 579 deletions

View File

@@ -20,7 +20,7 @@ namespace WireMock.Util
}
}
public static string GenerateDynamicLinqStatement(JObject jsonObject)
public static string GenerateDynamicLinqStatement(JToken jsonObject)
{
var lines = new List<string>();
WalkNode(jsonObject, null, null, lines);
@@ -40,7 +40,7 @@ namespace WireMock.Util
}
else
{
ProcessItem(node, path, propertyName, lines);
ProcessItem(node, path ?? "it", propertyName, lines);
}
}