Apply CR suggestions
This commit is contained in:
parent
ba2bd5c3e3
commit
1e69400369
@ -1530,7 +1530,7 @@ void Path::makePath(const String& path, const InArgs& in) {
|
|||||||
while (current != end) {
|
while (current != end) {
|
||||||
if (*current == '[') {
|
if (*current == '[') {
|
||||||
++current;
|
++current;
|
||||||
if (*current == '%') {
|
if (current != end && *current == '%') {
|
||||||
addPathInArg(path, in, itInArg, PathArgument::kindIndex);
|
addPathInArg(path, in, itInArg, PathArgument::kindIndex);
|
||||||
++current;
|
++current;
|
||||||
} else {
|
} else {
|
||||||
|
@ -2140,8 +2140,8 @@ JSONTEST_FIXTURE_LOCAL(ValueTest, searchValueByPath) {
|
|||||||
const Json::String expected("{"
|
const Json::String expected("{"
|
||||||
"\"property1\":[0,1,null],"
|
"\"property1\":[0,1,null],"
|
||||||
"\"property2\":{"
|
"\"property2\":{"
|
||||||
"\"hello\":null,"
|
"\"hello\":null,"
|
||||||
"\"object\":\"object\"},"
|
"\"object\":\"object\"},"
|
||||||
"\"property3\":[[0,1,null],[2,3]]"
|
"\"property3\":[[0,1,null],[2,3]]"
|
||||||
"}\n");
|
"}\n");
|
||||||
Json::Path path1(".property1.[%]", 2);
|
Json::Path path1(".property1.[%]", 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user