summaryrefslogtreecommitdiff
path: root/core/Names.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Names.zig')
-rw-r--r--core/Names.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Names.zig b/core/Names.zig
index 2fbbec37..47165f52 100644
--- a/core/Names.zig
+++ b/core/Names.zig
@@ -233,7 +233,7 @@ fn bonusAt(text: []const u8, j: usize) i32 {
/// `text`. Terms split on spaces are ANDed; smart case per term. With
/// `marks`, the bytes matched are written there, ascending (the table they
/// are backtracked through is `dp_trace`).
-fn match(query: []const u8, text_in: []const u8, lower_in: []const u8, base: usize, marks: ?[]u16, marks_len: ?*usize) ?i32 {
+pub fn match(query: []const u8, text_in: []const u8, lower_in: []const u8, base: usize, marks: ?[]u16, marks_len: ?*usize) ?i32 {
const text = text_in[0..@min(text_in.len, max_text)];
const lower = lower_in[0..text.len];
var total: i32 = 0;