Fixed partial string matches

This commit is contained in:
Luca Deri
2019-09-27 13:42:41 +02:00
parent 5099646938
commit 7c788f0779
3 changed files with 55 additions and 29 deletions
+1 -2
View File
@@ -3462,8 +3462,7 @@ void automataUnitTest() {
assert(ndpi_add_string_to_automa(automa, "hello") == 0);
assert(ndpi_add_string_to_automa(automa, "world") == 0);
ndpi_finalize_automa(automa);
assert(ndpi_match_string(automa, "This is the wonderful world of nDPI") == 0);
assert(ndpi_match_string(automa, "This is the wonderful world of nDPI") == 1);
ndpi_free_automa(automa);
}