diff options
Diffstat (limited to 'src/PropSet.cxx')
-rw-r--r-- | src/PropSet.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx index ac88e61c7..5287fb36b 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -532,6 +532,20 @@ bool WordList::InList(const char *s) { j++; } } + j = starts['^']; + if (j >= 0) { + while (words[j][0] == '^') { + const char *a = words[j] + 1; + const char *b = s; + while (*a && *a == *b) { + a++; + b++; + } + if (!*a) + return true; + j++; + } + } return false; } |