Slug¶
A slug is a word or a few words that uniquely describe an object. Slugs are often used instead of an id (from a database) due to their readability and portability.
Syntax¶
Slugs are composed of lowercase alphanumeric characters and hyphens.
abcdefghijklmnopqrstuvwxyz1234567890-
- The first character in a slug must be a letter.
- The last character in a slug must not be a hyphen.
Examples¶
gen
pt-br
aey-x-haya
custom-slug-123
my-1st-slug