fix
This commit is contained in:
parent
190f20c7b9
commit
08ec8d9182
@ -26,12 +26,12 @@ if (typeof pkg.repository === 'undefined') {
|
||||
}
|
||||
|
||||
function major (version) {
|
||||
return version.replace (/\.[0-9]+$/ui, '');
|
||||
return version.replace (/\.[0-9x]+$/ui, '');
|
||||
}
|
||||
|
||||
if (fs.existsSync ('README.md')) {
|
||||
const readme = fs.readFileSync ('README.md', 'utf-8');
|
||||
const version = (/version: ([0-9.]+)/ui).exec (readme);
|
||||
const version = (/version: ([0-9x.]+)/ui).exec (readme);
|
||||
if (
|
||||
version === null
|
||||
|| major (version[1]) !== major (pkg.version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user