Skip to content

Commit

Permalink
fix: check version number does not start with v (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem authored Oct 18, 2023
1 parent 46cc420 commit d806214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const {join} = require('path');
const {writeFileSync, readFileSync} = require('fs');

const setVersion = (version) => {
if (version != undefined && !valid(version)) {
if (version != undefined && !(valid(version) && !version.startsWith('v'))) {
throw new Error(`Invalid version number: ${version}`);
}
const directories = [
Expand Down

0 comments on commit d806214

Please sign in to comment.