Skip to content

fix(core): match rule globs against file paths containing spaces - #13140

Open
tonycoder-hub wants to merge 1 commit into
continuedev:mainfrom
tonycoder-hub:cursor/fix-rule-globs-filenames-with-spaces-bb1f
Open

fix(core): match rule globs against file paths containing spaces#13140
tonycoder-hub wants to merge 1 commit into
continuedev:mainfrom
tonycoder-hub:cursor/fix-rule-globs-filenames-with-spaces-bb1f

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Fixes #13135. Rule globs now match file paths that contain spaces. Tests added and passing in core.

Code block headers are parsed to find the file paths that rule globs are
matched against. The path was extracted with a regex that excluded
whitespace, so "docs/foo bar.md" was truncated to "bar.md" and globs
like "docs/**/*.md" no longer matched.

Parse the header positionally instead: strip the fence, an optional
trailing line range, and an optional leading language tag.

Fixes continuedev#13135
@tonycoder-hub
tonycoder-hub requested a review from a team as a code owner August 17, 2026 08:39
@tonycoder-hub
tonycoder-hub requested review from sestinj and removed request for a team August 17, 2026 08:39
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@tonycoder-hub

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rule globs don't match files with spaces in filename

1 participant