mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: strip v in the getElectronVersion helper
This commit is contained in:
@@ -18,5 +18,5 @@ module.exports.getElectronVersion = () => {
|
||||
console.error(output.stderr);
|
||||
throw new Error('Failed to get current electron version');
|
||||
}
|
||||
return output.stdout.toString().trim();
|
||||
return output.stdout.toString().trim().replace(/^v/g, '');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user