#define HOUR_REGEX "^([0-9]|1[0-9]|2[0-3])$"
#define MINUTE_REGEX "^([0-9]|[1-5][0-9])$"
-bool _validate_string(const char* str, const char* regex_pattern)
+bool _validate_string(const char* str, const char* pattern)
{
regex_t regex;
- int comp_success = regcomp(®ex, regex_pattern, REG_NOSUB | REG_EXTENDED);
+ int comp_success = regcomp(®ex, pattern, REG_NOSUB | REG_EXTENDED);
if (comp_success != 0)
return false;