Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add validation utility functions #88

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

mdsanima
Copy link
Contributor

Refactored the utility library, simplifying the package installation check and introducing new validation functions. Replaced the verbose util::check_package_installed with a more concise util::is_package_installed function.

Added util::is_integer, util::is_number, util::is_string, and util::is_text functions to validate different types of input.

These enhancements improve code readability and expand the librarys functionality, ensuring stricter input handling in scripts that rely on it.

Refactored the utility library, simplifying the package installation
check and introducing new validation functions. Replaced the verbose
`util::check_package_installed` with a more concise
`util::is_package_installed` function.

Added `util::is_integer`, `util::is_number`, `util::is_string`, and
`util::is_text` functions to validate different types of input.

These enhancements improve code readability and expand the librarys
functionality, ensuring stricter input handling in scripts that rely
on it.
@mdsanima mdsanima merged commit 3184c0a into main Feb 23, 2024
1 check passed
@mdsanima mdsanima deleted the feat/util-validation branch February 23, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant