Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

docs(weir): compare wildcards to regex `.` instead of `*` (#4763)

John Costa251efdd830a0
diff --git a/packages/web/src/routes/docs/weir/+page.md b/packages/web/src/routes/docs/weir/+page.md
index b3623399d..5ea26b442 100644
--- a/packages/web/src/routes/docs/weir/+page.md
+++ b/packages/web/src/routes/docs/weir/+page.md
@@ -197,7 +197,8 @@ expr main DET ![break, braking]
### Wildcards
If you need to allow a token between two others, or otherwise want to include an unknown and unrestricted token in the expression, you can use a wildcard.
-Although they look like the single-character wildcard from regex (Weir borrows the `*` syntax), Weir wildcards match over entire tokens, including words, punctuation, and whitespace.
+Weir wildcards are written `*`, but unlike `*` in regex or file globs, they always match exactly one whole token, whether that is a word, punctuation, or whitespace.
+That makes them closer to `.` in regex, which matches exactly one character.
Example: