mirror of
https://github.com/thalikbussacro/graph-filter-builder.git
synced 2026-07-22 06:52:03 +00:00
fix: separa termos com espaco em vez de AND explicito
graph filter parser quebrava com AND explicito quando combinado com termos negados. forma documentada e usada nativamente eh separar por espaco (AND implicito). antes: (path:foo) AND (-path:"bar") depois: (path:foo) (-path:"bar") bump: 0.5.2 -> 0.5.3
This commit is contained in:
parent
e857b5f5f2
commit
d1435a3fc8
4 changed files with 8 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "graph-filter-builder",
|
||||
"name": "Graph Filter Builder",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"minAppVersion": "1.0.0",
|
||||
"description": "Adds a Filter Builder panel to the graph view — structured Include/Exclude lines for tag/path/file with autocomplete. Lives at the top-left of the graph and live-updates the native filter input.",
|
||||
"author": "Thalik",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "graph-filter-builder",
|
||||
"version": "0.5.2",
|
||||
"version": "0.5.3",
|
||||
"description": "Structured Include/Exclude filter builder for the graph view, with autocomplete for tags, paths and files.",
|
||||
"main": "main.js",
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -330,7 +330,10 @@ export class FilterBuilderSection {
|
|||
|
||||
if (parts.length === 0) return "";
|
||||
if (parts.length === 1) return parts[0]!;
|
||||
return parts.map((p) => `(${p})`).join(" AND ");
|
||||
// Space-separated is the documented form for implicit AND.
|
||||
// Explicit AND breaks the graph filter parser when combined with
|
||||
// negated terms.
|
||||
return parts.map((p) => `(${p})`).join(" ");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"0.5.0": "1.0.0",
|
||||
"0.5.1": "1.0.0",
|
||||
"0.5.2": "1.0.0"
|
||||
"0.5.2": "1.0.0",
|
||||
"0.5.3": "1.0.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue