UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

8 lines (7 loc) 257 B
//#region src/app/plugins/utils.ts const VALID_ISLAND_KEY_RE = /^[a-z][a-z\d-]*_[a-z\d]+$/i; function isValidIslandKey(key) { return typeof key === "string" && VALID_ISLAND_KEY_RE.test(key) && key.length <= 100; } //#endregion export { isValidIslandKey };