We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e179e commit 6f6d3d3Copy full SHA for 6f6d3d3
src/sqlite_rag/cli.py
@@ -257,9 +257,15 @@ def add(
257
rag_context = ctx.obj["rag_context"]
258
start_time = time.time()
259
260
- # Parse extension lists
261
- only_list = only_extensions.split(",") if only_extensions else None
262
- exclude_list = exclude_extensions.split(",") if exclude_extensions else None
+ # Parse and normalize extension lists
+ only_list = (
+ [e.strip().lstrip(".").lower() for e in only_extensions.split(",") if e.strip()]
263
+ if only_extensions else None
264
+ )
265
+ exclude_list = (
266
+ [e.strip().lstrip(".").lower() for e in exclude_extensions.split(",") if e.strip()]
267
+ if exclude_extensions else None
268
269
270
rag = rag_context.get_rag()
271
rag.add(
0 commit comments