Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

validatePluginId

Since Plugin API: 1.0.0

Validate a plugin ID format Must be in format: vendor.plugin-name (lowercase, alphanumeric with hyphens)

Signature

export function validatePluginId(id: string): boolean {
    const pattern = /^[a-z][a-z0-9]*.[a-z][a-z0-9-]*[a-z0-9]$/;
    return pattern.test(id) && !id.startsWith("phials.");
}