diff --git a/cv1/program.c b/cv1/program.c index 1ee33bb..b5ccdb8 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -38,6 +38,14 @@ int contains_normalized(const char *name, const char *search) { char transformed_name[LINESIZE], transformed_search[LINESIZE]; transform_to_hacker_script(name, transformed_name); transform_to_hacker_script(search, transformed_search); + + for (int i = 0; transformed_name[i]; i++) { + transformed_name[i] = tolower(transformed_name[i]); + } + for (int i = 0; transformed_search[i]; i++) { + transformed_search[i] = tolower(transformed_search[i]); + } + return strstr(transformed_name, transformed_search) != NULL; }