mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
Trim current version string
This commit is contained in:
@@ -21,7 +21,7 @@ const getLatestVersion = async () => {
|
|||||||
const getCurrentVersion = () => {
|
const getCurrentVersion = () => {
|
||||||
try {
|
try {
|
||||||
const versionFile = fs.readFileSync('./.version');
|
const versionFile = fs.readFileSync('./.version');
|
||||||
return versionFile ? versionFile.toString() : null;
|
return versionFile ? versionFile.toString().trim() : null;
|
||||||
} catch(_) {
|
} catch(_) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user