Skip to content

Commit

Permalink
docs: fix spacing in matcher docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 20, 2024
1 parent 9da660a commit 3a2a380
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/docs/@fetch-mock/core/route/matcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,45 @@ All of the following can be passed in directly as the `matcher` argument or as t
### Full url

`{String|URL}`

Match an exact url. Can be defined using a string or a `URL` instance, e.g. `"http://www.site.com/page.html"`

The value `*` can be used to match any url

### begin:...

`{String}`

Match a url beginning with a string, e.g. `"begin:http://www.site.com"`

### end:...

`{String}`

Match a url ending with a string, e.g. `"end:.jpg"`

### path:...

`{String}`

Match a url which has a given path, e.g. `"path:/posts/2018/7/3"`

### glob:...

`{String}`

Match a url using a glob pattern, e.g. `"glob:http://*.*"`

### RegExp

`{RegExp}`

Matches a url that satisfies a regular expression, e.g. `/(article|post)\/\d+/`

### express:...

`{String}`

Match a url that satisfies an [express style path](https://www.npmjs.com/package/path-to-regexp), e.g. `"express:/user/:user"`

#### Matching express param values
Expand Down

0 comments on commit 3a2a380

Please sign in to comment.