Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a919f9f commit 81b624bCopy full SHA for 81b624b
src/logic/comment.go
@@ -335,7 +335,7 @@ func (CommentLogic) decodeCmtContentForShow(ctx context.Context, comment *model.
335
content := template.HTMLEscapeString(comment.Content)
336
337
// 回复某一楼层
338
- reg := regexp.MustCompile(`#(\d+)楼 @([a-zA-Z0-9_]+)`)
+ reg := regexp.MustCompile(`#(\d+)楼 @([a-zA-Z0-9_-]+)`)
339
matches := reg.FindStringSubmatch(content)
340
if len(matches) > 2 {
341
comment.ReplyFloor = goutils.MustInt(matches[1])
0 commit comments