Skip to content

Commit 35d6dda

Browse files
authored
docs: fix regex patterns in samples (#425)
1 parent 31872f2 commit 35d6dda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/the-complete-guide/part1/5-data-validation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ We can use data validation to improve our app's robustness in many places. Two s
8282
```zmodel
8383
model Space {
8484
...
85-
slug String @unique @regex('^[0-9a-zA-Z_\-]{4,16}$')
85+
slug String @unique @regex('^[0-9a-zA-Z]{4,16}$')
8686
}
8787
```
8888

versioned_docs/version-1.x/the-complete-guide/part1/5-data-validation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ We can use data validation to improve our app's robustness in many places. Two s
8181
```zmodel
8282
model Space {
8383
...
84-
slug String @unique @regex('^[0-9a-zA-Z_\-]{4,16}$')
84+
slug String @unique @regex('^[0-9a-zA-Z]{4,16}$')
8585
}
8686
```
8787

0 commit comments

Comments
 (0)