Last active
September 19, 2023 11:48
-
-
Save alva-v/14f64249b31e62247ee99d0079ef96e9 to your computer and use it in GitHub Desktop.
Slug Regex: lowercase latin characters and hyphens. Can't start or end with hyphen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^[a-z\d]+(?:-[a-z\d]+)*$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment