Skip to content

Commit e5d1d38

Browse files
committed
fix typo
Signed-off-by: shirady <[email protected]>
1 parent 09f044d commit e5d1d38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/manage_nsfs/manage_nsfs_validations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ function validate_expected_version(expected_version, skip_verification = false)
754754
if (!expected_version) {
755755
throw new Error('expected_version flag is required');
756756
}
757-
if (!version_utils.is_valid_sematic_version(expected_version)) {
757+
if (!version_utils.is_valid_semantic_version(expected_version)) {
758758
throw new Error('expected_version must have sematic version structure (major.minor.patch)');
759759
}
760760
if (!skip_verification && !version_match_to_current_version(expected_version)) {

src/util/versions_utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ function version_compare(ver1, ver2) {
2929
}
3030

3131
/**
32-
* is_valid_sematic_version checks that the version string is a valid sematic version
32+
* is_valid_semantic_version checks that the version string is a valid sematic version
3333
* 1. strips the additional "-<something>" that might be added, for example: -alpha, -beta etc
3434
* 2. checks that the version has the sematic version is from the structure of version: major.minor.patch
3535
* @param {string} version
3636
* @returns {boolean}
3737
*/
38-
function is_valid_sematic_version(version) {
38+
function is_valid_semantic_version(version) {
3939
const stripped_ver = version.split('-')[0];
4040
// sematic version is from the structure of version: major.minor.patch
4141
const semantic_version_regex = /^\d+\.\d+.\.\d+$/;
4242
return semantic_version_regex.test(stripped_ver);
4343
}
4444

4545
exports.version_compare = version_compare;
46-
exports.is_valid_sematic_version = is_valid_sematic_version;
46+
exports.is_valid_semantic_version = is_valid_semantic_version;
4747

0 commit comments

Comments
 (0)