Skip to content

Commit

Permalink
Fixed regex for matching versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Dec 10, 2024
1 parent c8d39fb commit e25fdd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const getOptions = () => {
),
micromambaVersion: parseOrUndefined(
'micromamba-version',
z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+-\d+$/)]),
z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+(?:\.(?:rc|alpha|beta)\d+)?-\d+$/)]),
'micromamba-version must be either `latest` or a version matching `1.2.3-0`.'
),
micromambaUrl: parseOrUndefined('micromamba-url', z.string().url()),
Expand Down

0 comments on commit e25fdd1

Please sign in to comment.