Skip to content

Commit

Permalink
fix: brackets usage in url-dispatch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leon3s committed Dec 9, 2023
1 parent 597b03c commit 8782159
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/url-dispatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ and:
/{foo}/bar/baz
```

A _variable part_ (replacement marker) is specified in the form _{identifier}_, where this means "accept any characters up to the next slash character and use this as the name in the `HttpRequest.match_info()` object".
A _variable part_ (replacement marker) is specified in the form _\{identifier\}_, where this means "accept any characters up to the next slash character and use this as the name in the `HttpRequest.match_info()` object".

A replacement marker in a pattern matches the regular expression `[^{}/]+`.

Expand Down Expand Up @@ -170,7 +170,7 @@ Suppose that you want to organize paths to endpoints used to view "Users". Such

- /users
- /users/show
- /users/show/{id}
- /users/show/\{id\}

A scoped layout of these paths would appear as follows

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ntex-website",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand Down

0 comments on commit 8782159

Please sign in to comment.