summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter.c2
-rw-r--r--tests/015/trie.tl2
2 files changed, 3 insertions, 1 deletions
diff --git a/filter.c b/filter.c
index 491cebbd..650400e6 100644
--- a/filter.c
+++ b/filter.c
@@ -163,6 +163,8 @@ static val regex_from_trie(val trie)
else
out = ry;
}
+ if (get_hash_userdata(trie))
+ out = list(or_s, nil, out, nao);
return out;
}
}
diff --git a/tests/015/trie.tl b/tests/015/trie.tl
index f233c76e..48e7e050 100644
--- a/tests/015/trie.tl
+++ b/tests/015/trie.tl
@@ -46,4 +46,4 @@
(mvtest
(build (each ((d dat)) (add [rx0 d]))) dat
- (build (each ((n enu)) (add [rx0 n]))) (repeat '(nil) (len dat)))
+ (build (each ((n ndt)) (add [rx0 n]))) (repeat '(nil) (len dat)))