This commit is contained in:
Anton Dolozin 2025-11-09 20:52:59 +01:00
parent dc8019ad2d
commit d7454318bf

View File

@ -47,9 +47,9 @@ bool find_the_incorrect(struct tree* tree) {
if (tree == NULL)
return false;
if (tree->value &&
(strcspn(tree->value, "*") != strlen(tree->value) &&
strcspn(tree->value, "?") != strlen(tree->value))) {
if
((strcspn(tree->value, "*") != strlen(tree->value) &&
strcspn(tree->value, "?") != strlen(tree->value)) || (strcspn(tree->value, ".") != strlen(tree->value) )) {
return true;
}