validate_slug: Validate a slug string

View source: R/utils.R

validate_slugR Documentation

Validate a slug string

Description

Checks that a slug contains only lowercase alphanumeric characters and hyphens, and is not empty.

Usage

validate_slug(slug)

Arguments

slug

Character string. The slug to validate.

Value

Invisible TRUE if valid, otherwise aborts with an error.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.