diff --git a/spec/blink-ripgrep/get_prefix_spec.lua b/spec/blink-ripgrep/get_prefix_spec.lua index a9d9053..19c8cab 100644 --- a/spec/blink-ripgrep/get_prefix_spec.lua +++ b/spec/blink-ripgrep/get_prefix_spec.lua @@ -27,6 +27,21 @@ describe("match_prefix", function() end ) + it("matches when there is nonmatching input at the end", function() + assert.are_same(blink_ripgrep.match_prefix(".hello)"), "hello") + assert.are_same(blink_ripgrep.match_prefix(",hello)"), "hello") + assert.are_same( + blink_ripgrep.match_prefix(".,,!@!@$@%<<@$