mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
chore: tests
This commit is contained in:
@ -25,8 +25,10 @@ type InSiteMessageProps = {
|
|||||||
title: string
|
title: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const LINE_BREAK_REGEX = /\\n/g
|
||||||
|
|
||||||
function normalizeLineBreaks(text: string): string {
|
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 {
|
function normalizeLinkData(data: unknown): { href: string, rel?: string, target?: string } | null {
|
||||||
|
|||||||
Reference in New Issue
Block a user