mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +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