Skip to content

Commit 37a21a7

Browse files
author
3aa49ec6bfc910647fa1c5a013e48eef
committed
Fix line break replacement in configContent
1 parent ba359c6 commit 37a21a7

File tree

1 file changed

+1
-1
lines changed
  • website/src/routes/api/configFiles/[configName]

1 file changed

+1
-1
lines changed

website/src/routes/api/configFiles/[configName]/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getConfigContent = (configName: string): string => {
1919

2020
export const GET: RequestHandler = async (event: RequestEvent) => {
2121
const configName = event.params.configName;
22-
const configContent = configName !== undefined ? (getConfigContent(configName)).replace("\n","<br>") : "";
22+
const configContent = configName !== undefined ? (getConfigContent(configName)).replaceAll("\n","<br>") : "";
2323

2424
console.log("configName:",configName, configContent)
2525

0 commit comments

Comments
 (0)