Skip to content

Commit

Permalink
Verify LocalSeedIDs have limited characters in them.
Browse files Browse the repository at this point in the history
Part of #3.
  • Loading branch information
jkomoros committed Jun 18, 2023
1 parent 9819c75 commit 13f0022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const environmentData = knownEnvironmentData.catchall(z.string());

export type EnvironmentData = z.infer<typeof environmentData>;

const localSeedID = z.string();
const localSeedID = z.string().regex(/[a-zA-Z0-9-_]*/);

//A localSeedID is what a Seed is known as within the context of a specific seed packet:
export type LocalSeedID = z.infer<typeof localSeedID>;
Expand Down

0 comments on commit 13f0022

Please sign in to comment.