summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2022-12-15 05:01:17 +0000
committerOmar Rizwan <omar@omar.website>2022-12-15 05:01:17 +0000
commit09f248fd46659ea8298b75e6d6483dc93f0b0db0 (patch)
treeffdc3066b17c75298c4724a4e0858fec82cf6c00 /lib
parentActually fix statement syndication (assertion handling) (diff)
downloadfolk-09f248fd46659ea8298b75e6d6483dc93f0b0db0.tar.gz
folk-09f248fd46659ea8298b75e6d6483dc93f0b0db0.zip
Make trie use ? for wildcard. More bugfixes of new match evaluator
Diffstat (limited to 'lib')
-rw-r--r--lib/trie.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/trie.tcl b/lib/trie.tcl
index a9f53216..ce580ae4 100644
--- a/lib/trie.tcl
+++ b/lib/trie.tcl
@@ -146,8 +146,8 @@ namespace eval ctrie {
} else {
const char *keyString = Tcl_GetString(trie->branches[j]->key);
const char *wordString = Tcl_GetString(wordv[0]);
- if ((keyString[0] == '/') ||
- (wordString[0] == '/') ||
+ if ((keyString[0] == '?' && keyString[1] == '\0') ||
+ (wordString[0] == '?' && wordString[1] == '\0') ||
(strcmp(keyString, wordString) == 0)) {
lookupImpl(interp, results, trie->branches[j], wordc - 1, wordv + 1);
}