From c87f5901b97faf7b318b842b748697840c1d2593 Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Wed, 13 Sep 2023 06:05:32 -0400 Subject: [PATCH] Fix some refs to use the correct dfn. --- spec.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.bs b/spec.bs index 7ab324a..bc45c8f 100644 --- a/spec.bs +++ b/spec.bs @@ -104,7 +104,7 @@ p + dl.props { margin-top: -0.5em; }

The {{URLPattern}} class

-A {{URLPattern}} consists of several [=components=], each of which represents a [=pattern string|pattern=] which could be matched against the corresponding component of a [=URL=]. +A {{URLPattern}} consists of several [=components=], each of which represents a [=/pattern string|pattern=] which could be matched against the corresponding component of a [=/URL=]. It can be constructed using a string for each component, or from a shorthand string. It can optionally be resolved relative to a base URL. @@ -875,7 +875,7 @@ To compute protocol matches a special scheme flag given a [=construct A pattern string is a string that is written to match a set of target strings. A well formed pattern string conforms to a particular pattern syntax. This pattern syntax is directly based on the syntax used by the popular [path-to-regexp](https://github.com/pillarjs/path-to-regexp) JavaScript library. -It can be [=parse a pattern string|parsed=] to produce a [=part list=] which describes, in order, what must appear in a component string for the pattern string to match. +It can be [=parse a pattern string|parsed=] to produce a [=/part list=] which describes, in order, what must appear in a component string for the pattern string to match.
Pattern strings can contain capture groups, which by default match the shortest possible string, up to a component-specific separator (`/` in the pathname, `.` in the hostname). For example, the pathname pattern "`/blog/:title`" will match "`/blog/hello-world`" but not "`/blog/2012/02"`.