We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0170f commit 5a4d2cbCopy full SHA for 5a4d2cb
src/Meta/Filters/ModulesBlacklist.h
@@ -72,7 +72,11 @@ class ModulesBlacklist {
72
// If we reach at the end of both strings, we are done
73
if (*pattern == '\0' && *string == '\0')
74
return true;
75
-
+
76
+ // pattern "*" matches everything, done checking
77
+ if (pattern[0] == '*' && pattern[1] == '\0')
78
+ return true;
79
80
// Make sure that the characters after '*' are present
81
// in second string. This function assumes that the first
82
// string will not contain two consecutive '*'
0 commit comments