mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 02:02:14 +02:00
Implement a dedicated function for word matching rather than relying on a regex and being at the mercy of the vagaries of regex implementations
This commit is contained in:
@@ -117,8 +117,7 @@ func TestHintMarking(t *testing.T) {
|
||||
reset()
|
||||
opts.Type = "word"
|
||||
r(`#one (two) 😍 a-1b `, `#one`, `two`, `a-1b`)
|
||||
// non-ascii words dont match because of https://github.com/dlclark/regexp2/issues/65
|
||||
// r(`fōtiz час`, `fōtiz`, `час`)
|
||||
r("fōtiz час a\u0310b ", `fōtiz`, `час`, "a\u0310b")
|
||||
|
||||
reset()
|
||||
tdir := t.TempDir()
|
||||
|
||||
Reference in New Issue
Block a user