Skip to content

Commit

Permalink
ws@0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stkevintan committed Jan 21, 2024
1 parent 236db75 commit 7b5bbeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function invariant(condition, message) {
let [, , name, version, tag] = process.argv;
console.log('get version: %s, tag: %s', version, tag);

version = version.replace(/^core@/, '');
version = version.replace(new RegExp(`^${name}@`), '');

// A simple SemVer validation to validate the version
const validVersion = /^\d+\.\d+\.\d+(-\w+\.\d+)?/;
Expand Down

0 comments on commit 7b5bbeb

Please sign in to comment.