Skip to main content

locale_tag_accepts

Function locale_tag_accepts 

Source
pub fn locale_tag_accepts(tag: &str) -> bool
Expand description

Whether tag satisfies LocaleTag’s refinement — the check behind bynk.messages.invalid_locale_tag. Evaluated with the same regex-engine semantics (regress, anchored, no flags) the emitted new RegExp(...) runs under, so a tag accepted here is one the runtime cast is honest about.