is_cuid2: Check if an argument is a CUID2 string

View source: R/string.R

is_cuid2R Documentation

Check if an argument is a CUID2 string

Description

Validates CUID2 strings of 24 (the default length) to 32 (the maximum length) characters.

Usage

is_cuid2(x)

Arguments

x

(any)
Object to check.

Value

TRUE if x is a valid CUID2 string, FALSE otherwise.

References

https://github.com/paralleldrive/cuid2

Examples

is_cuid2("ckopqwooh000001la8mbi2im9")

checkstring documentation built on Sept. 28, 2026, 5:07 p.m.