Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: ♻️ Added
is_semver_version_array_valid()
(#171)
* refactor: ♻️ split off dep and inc validation function splited `validate_dependencies_and_incompatibilities()` in to `validate_dependencies()`, `validate_incompatibilities()` and `is_mod_id_array_valid()`. Will be used in the ModTool to validate the fields separately. * refactor: ♻️ Added `is_semver_version_array_valid()` Added `is_semver_version_array_valid()` to check an array of semver versions. For example the *compatible_mod_loader_version* field. * refactor: ♻️ use version array validation where applicable Use `is_semver_version_array_valid()` in `_handle_compatible_mod_loader_version()` * refactor: 🔥 Removed `break` in `is_semver_version_array_valid()` Removed the `break` in `is_semver_version_array_valid()`, so all invalid values get logged at once and the user doesn't have to fix one error to get the next one.
- Loading branch information