We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2813c2d commit 1a40c15Copy full SHA for 1a40c15
scripts/lib/index.ts
@@ -1,2 +1,2 @@
1
export * from "./glob";
2
-export * from "./version";
+export * from "./semver";
scripts/lib/version.ts renamed to scripts/lib/semver.ts
@@ -1,7 +1,7 @@
-export const isReleaseVersion = (s: string) => /^\d+\.\d+\.\d+$/.test(s);
+export const isStableVersion = (s: string) => /^\d+\.\d+\.\d+$/.test(s);
3
export const isBetaVersion = (s: string) => /^\d+\.\d+\.\d+-beta\.\d+$/.test(s);
4
5
export const isNextVersion = (s: string) => /^\d+\.\d+\.\d+-next\.\d+$/.test(s);
6
7
-export const isVersion = (s: string) => isNextVersion(s) || isBetaVersion(s) || isReleaseVersion(s);
+export const isVersion = (s: string) => isNextVersion(s) || isBetaVersion(s) || isStableVersion(s);
0 commit comments