Skip to content

docs(grep): fix malformed glob examples#37

Open
T0mSIlver wants to merge 1 commit into
microsoft:mainfrom
T0mSIlver:fix/grep-md-glob-examples
Open

docs(grep): fix malformed glob examples#37
T0mSIlver wants to merge 1 commit into
microsoft:mainfrom
T0mSIlver:fix/grep-md-glob-examples

Conversation

@T0mSIlver

Copy link
Copy Markdown

Problem

grep.md gives glob examples as ".js" and "**/.tsx". Those match literal dotfiles (a file named .js, or .tsx files in a subdir), not files by extension — the opposite of what the line intends. The model copies these patterns.

Fix

Correct to "*.js" and "**/*.tsx", consistent with the working examples in the glob parameter's own schema description. Adds tests/test_grep_glob_examples.py asserting the examples are valid and that the documented *.js pattern matches by extension.

Paper reference

Supported by the paper, whose glob examples are all extension globs (e.g. "*.js", "*.{ts,tsx}", "**/*.js", "src/**/*.ts"), consistent with the corrected forms here. — FastContext paper (arXiv:2606.14066), Appendix E "FastContext Explorer: Tool Schemas", p. 19

The example globs in grep.md were written as '.js' and '**/.tsx', which
match literal dotfiles rather than files by extension. Correct them to
'*.js' and '**/*.tsx' so the model copies a working pattern, and add a
test asserting the examples are valid and that '*.js' matches by
extension.
@T0mSIlver T0mSIlver closed this Jun 27, 2026
@T0mSIlver T0mSIlver deleted the fix/grep-md-glob-examples branch June 27, 2026 11:32
@T0mSIlver T0mSIlver restored the fix/grep-md-glob-examples branch June 27, 2026 11:56
@T0mSIlver T0mSIlver reopened this Jun 27, 2026
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.

1 participant