Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ Tests whether the string matches the regex given. `regex` takes
Examples:

```rust
use once_cell::sync::Lazy;
use std::sync::LazyLock;

static RE_TWO_CHARS: Lazy<Regex> = Lazy::new(|| {
Regex::new(r"[a-z]{2}$").unwrap()
});

#[validate(regex(path = *RE_TWO_CHARS)]
#[validate(regex(path = *RE_TWO_CHARS))]
```

### credit\_card
Expand Down
Loading