jq 是否包含支持不区分大小写的匹配?
给定这个过滤器:
.user | contains("thinking")
Run Code Online (Sandbox Code Playgroud)
和 JSON:
{
"id": "1338268256814161923",
"user": "Thinking of going through the Venmo transactions on my feed and liking all of them just to create a little sense of vulnerability"
}
Run Code Online (Sandbox Code Playgroud)
输出是“假”,但我想得到“真”。
jq 有一个和i的标志。有类似的东西吗?testmatchcontains