Skip to content

Commit 70c23b4

Browse files
ybot1122timdorr
authored andcommitted
update glossary to properly document greedy string matching (#3360)
1 parent 52c268d commit 70c23b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/Glossary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ A *route pattern* (or "path") is a string that describes a portion of a URL. Pat
231231
- `:paramName` – matches a URL segment up to the next `/`, `?`, or `#`. The matched string is called a [param](#params)
232232
- `()` – Wraps a portion of the URL that is optional
233233
- `*` – Matches all characters (non-greedy) up to the next character in the pattern, or to the end of the URL if there is none, and creates a `splat` [param](#params)
234+
- `**` - Matches all characters (greedy) until the next `/`, `?`, or `#` and creates a `splat` [param](#params)
234235
235236
Route patterns are relative to the pattern of the parent route unless they begin with a `/`, in which case they begin matching at the beginning of the URL.
236237

0 commit comments

Comments
 (0)