Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: UUID validation and error message #2

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/streamdeck/plugins/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ type ManifestBase<V extends string> = {
* **Allowed characters:**
* - Lowercase alphanumeric characters (a-z, 0-9)
* - Hyphens (-)
* - Underscores (_)
* - Periods (.)
*
* **Examples:**
Expand Down Expand Up @@ -604,7 +603,6 @@ type Action = {
* **Allowed characters:**
* - Lowercase alphanumeric characters (a-z, 0-9)
* - Hyphens (-)
* - Underscores (_)
* - Periods (.)
*
* NB: `UUID` must be unique, and should be prefixed with the plugin's UUID.
Expand Down Expand Up @@ -654,9 +652,9 @@ type HtmlFilePath = FilePath<"htm" | "html">;
/**
* Unique identifier, in reverse DNS format.
* @pattern
* ^([a-z0-9\-]+)(\.[a-z0-9\-]+)+$
* ^([a-z0-9-]+)(\.[a-z0-9-]+)+$
* @errorMessage
* String must only contain alphanumeric characters (A-z, 0-9), hyphens (-), and periods (.), and be in reverse DNS format
* String must be in reverse DNS format, and must only contain lowercase alphanumeric characters (a-z, 0-9), hyphens (-), and periods (.)
*/
type Identifier = string;

Expand Down