This commit is contained in:
parent
f2bd83a8dc
commit
3bae9eb5c4
@ -120,7 +120,7 @@ class LarkBody {
|
||||
)
|
||||
// 去掉@_user_1相关的内容,例如 '@_user_1 测试' -> '测试'
|
||||
const textWithoutAt = text.replace(/@_user_\d+/g, "")
|
||||
return textWithoutAt
|
||||
return textWithoutAt.trim()
|
||||
} catch {
|
||||
return ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user