Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复词库问答几个问题 #1012

Merged
merged 15 commits into from
Aug 22, 2022
Merged

修复词库问答几个问题 #1012

merged 15 commits into from
Aug 22, 2022

Conversation

LambdaYH
Copy link
Contributor

@LambdaYH LambdaYH commented Aug 21, 2022

  1. 修复_rule中遇见消息为[at+文本]会直接报错的问题,错因:把MessageSegment对象直接拼接在了problem中当参数传入
  2. 修了一下添加词条时[at+文本]当作problem的情况。
  3. 给输入的字符串转义以适应正则词条
  4. 添加正则词条前先判断正则是否合Python的
  5. 修复精确匹配和模糊匹配没有进行word_type的判断的问题
  6. 匹配正则时使用传参构建sql语句而非直接拼接,避免出现非法查询语句

commit稍微有那么亿点多,但是修改量还行

@HibiKier HibiKier merged commit 0e1e5a5 into HibiKier:main Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants