Fix pattern matching...

parent c3728bf6
......@@ -62,7 +62,7 @@ replaceTerms pats terms = go 0
m =
IntMap.fromListWith merge
[ (ix, (len, term))
| Pattern pat len term <- pats, ix <- KMP.match pat (_terms_label term) ]
| Pattern pat len term <- pats, ix <- KMP.match pat terms ]
buildPatterns :: TermList -> Patterns
buildPatterns = sortWith (Down . _pat_length) . concatMap buildPattern
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment