CEC-3672 Update manifest version on deploy (#277)
* CEC-3672 Add versions to CarUpdatesContext Stub out getSoftwareVersions and updateManifestVersion * CEC-3672 update version on deploy * Validate version before updating
This commit is contained in:
5
src/utils/softwareVersions.js
Normal file
5
src/utils/softwareVersions.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const rxSoftwareVersion = /^\d{4}\.(0[1-9]|1[0-2])\.\d{2}\.\d{2}(\.[\d\w]{1})?$/i;
|
||||
|
||||
export const validateSoftwareVersion = (version) => {
|
||||
return rxSoftwareVersion.test(version);
|
||||
}
|
||||
Reference in New Issue
Block a user