Update validation regex and bump to 1.4.1

This commit is contained in:
Tom Hu 2021-04-19 21:18:52 -04:00
parent 0e28ff86a5
commit 95e6f30a60
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
5 changed files with 8 additions and 4 deletions

View file

@ -50,7 +50,7 @@ const calculateChecksum = (body, i) => {
};
const getVersion = (body) => {
const regex = /VERSION="(.*)+"/g;
const regex = /VERSION="([\d\.]+)"/g;
const match = regex.exec(body);
return match ? match[1] : null;
};