Also add scalars
This commit is contained in:
1 parent
1a1adf73e8
commit
831be04027
1 file changed
+1
@@ -691,6 +691,7 @@ static const char* const jq_builtins[] = {
|
|||||||
"def strings: select(type == \"string\");",
|
"def strings: select(type == \"string\");",
|
||||||
"def nulls: select(type == \"null\");",
|
"def nulls: select(type == \"null\");",
|
||||||
"def values: arrays, objects, booleans, numbers, strings;",
|
"def values: arrays, objects, booleans, numbers, strings;",
|
||||||
|
"def scalars: select(. == null or . == true or . == false or type == \"number\" or type == \"string\");",
|
||||||
};
|
};
|
||||||
#undef LIBM_DD
|
#undef LIBM_DD
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user