From 3ff4f60d9981658bbc91a29b2a15843c8ec0f806 Mon Sep 17 00:00:00 2001 From: Toby Liu Date: Wed, 20 Apr 2016 17:35:55 -0700 Subject: [PATCH] update glossary to properly document greedy string matching --- docs/Glossary.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Glossary.md b/docs/Glossary.md index 224db7ff36..94a0bb86c3 100644 --- a/docs/Glossary.md +++ b/docs/Glossary.md @@ -231,6 +231,7 @@ A *route pattern* (or "path") is a string that describes a portion of a URL. Pat - `:paramName` – matches a URL segment up to the next `/`, `?`, or `#`. The matched string is called a [param](#params) - `()` – Wraps a portion of the URL that is optional - `*` – 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) + - `**` - Matches all characters (greedy) until the next `/`, `?`, or `#` and creates a `splat` [param](#params) 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.