mirror of
https://github.com/langgenius/dify.git
synced 2026-03-21 14:28:26 +08:00
chore: tests
This commit is contained in:
@ -25,8 +25,10 @@ type InSiteMessageProps = {
|
||||
title: string
|
||||
}
|
||||
|
||||
const LINE_BREAK_REGEX = /\\n/g
|
||||
|
||||
function normalizeLineBreaks(text: string): string {
|
||||
return text.replace(/\\n/g, '\n')
|
||||
return text.replace(LINE_BREAK_REGEX, '\n')
|
||||
}
|
||||
|
||||
function normalizeLinkData(data: unknown): { href: string, rel?: string, target?: string } | null {
|
||||
|
||||
Reference in New Issue
Block a user