Skip to content

Commit

Permalink
docs: fix bracket escape on definePageMeta page (#26139)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karen committed Mar 8, 2024
1 parent a9af9e0 commit cd3cf0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/3.api/3.utils/define-page-meta.md
Expand Up @@ -200,7 +200,7 @@ The two routes "/test-category" and "/1234-post" match both `[postId]-[postSlug]

To make sure that we are only matching digits (`\d+`) for `postId` in the `[postId]-[postSlug]` route, we can add the following to the `[postId]-[postSlug].vue` page template:

```vue [pages/[postId]-[postSlug].vue]
```vue [pages/[postId\\]-[postSlug\\].vue]
<script setup lang="ts">
definePageMeta({
path: '/:postId(\\d+)-:postSlug'
Expand Down

0 comments on commit cd3cf0b

Please sign in to comment.