jun zhang

Results 3 issues of jun zhang

异常case不能通过测试,无法命中“国人”这个词 ```go func Test2(t *testing.T) { ac := NewMatcher() dictionary := []string{"中国人民", "国人", "hello世界", "hello"} ac.Build(dictionary) ret := ac.Match("中国人") for _, v := range ret { fmt.Println(v.Index, v.EndPosition) } //if...

单选select支持传参数q,联动查询其他字段。请问多选multipleSelect也支持类似的功能吗? 虽然checkbox支持多选联动,但只支持固定类型的options(如下),不支持根据多选的数据进行查表。 ``` $form->checkbox('nationality', '国籍') ->options([ 1 => '中国', 2 => '外国', ])->when([1, 2], function (Form $form) { $form->text('name', '姓名'); $form->text('idcard', '身份证'); })->when('has', 2, function (Form $form) { $form->text('name', '姓名');...

有一个关于连词的case,似乎搜索的结果不是很满足,无法匹配出“客人” ```go content := "山东人是好客人民" ac := NewAcAutoMachine() ac.AddPattern("好客") ac.AddPattern("客人") ac.AddPattern("山东") ```