Skip to content

fix(prompt-buffer): 修正 getCurrentSlashToken 函数逻辑#129

Merged
qorzj merged 2 commits into
lessweb:mainfrom
hqwlkj:main
May 28, 2026
Merged

fix(prompt-buffer): 修正 getCurrentSlashToken 函数逻辑#129
qorzj merged 2 commits into
lessweb:mainfrom
hqwlkj:main

Conversation

@hqwlkj
Copy link
Copy Markdown
Contributor

@hqwlkj hqwlkj commented May 28, 2026

  • 优化判断逻辑,只有当文本以斜杠开头时才返回完整文本
  • 移除按行处理逻辑,直接返回整个文本
  • 修改测试用例以匹配新的行为
  • 确保多行文本中不以斜杠开头时返回 null

hqwlkj added 2 commits May 28, 2026 17:34
- 优化判断逻辑,只有当文本以斜杠开头时才返回完整文本
- 移除按行处理逻辑,直接返回整个文本
- 修改测试用例以匹配新的行为
- 确保多行文本中不以斜杠开头时返回 null
@qorzj qorzj merged commit 03c9b61 into lessweb:main May 28, 2026
9 checks passed
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.

2 participants