Skip to content

Commit 49632af

Browse files
committed
docs: Clarify mid-path vs trailing ** semantics in extras spec
1 parent e227af4 commit 49632af

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/superpowers/specs/2026-05-22-extras-wildcard-design.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ just for them.
2121
Two wildcards, usable anywhere in a path (not just trailing):
2222

2323
- `*` — matches exactly one path segment, i.e. one or more characters with no `/`.
24-
- `**` — matches zero or more characters, may cross `/` boundaries.
24+
- `**` — matches any number of characters including `/`. At a trailing
25+
position (`/files/**`) it may match zero or more characters and so also
26+
matches the bare prefix path (`/files/`). Between two literal segments
27+
(`/schemas/**/openapi.yaml`) it must match at least one full intermediate
28+
segment — the surrounding slashes still need real content between them.
2529

2630
Patterns containing neither `*` nor `**` are treated as exact paths (current
2731
behaviour, no semantic change).

0 commit comments

Comments
 (0)