Skip to content
Snippets Groups Projects
Commit c472f71d authored by Jürgen Voskuhl's avatar Jürgen Voskuhl
Browse files

Replace CR-LF (used in Windows) by LF

parent 1a140731
No related branches found
No related tags found
1 merge request!86planning#1203: Standards
......@@ -19,7 +19,7 @@ function loadMarkdown(selectedServiceName: string) {
function prepareContentFromMarkdown(markdownContent: string, selectedServiceName: string) {
// eslint-disable-next-line no-unused-vars
const [header, metadata, text] = markdownContent.split('---')
const [header, metadata, text] = markdownContent.replace(/\r\n/g, '\n').split('---')
const content: ServiceContent = parseMetadata(metadata)
content.slug = selectedServiceName
content.text = parseTextToHTMLString(text)
......@@ -34,7 +34,7 @@ function parseTextToHTMLString(markdownText: string) {
}
function parseMetadata(metadata: string): ServiceContent {
const lines: string[] = metadata.split('\n')
const lines: string[] = metadata.replace(/\r\n/g, '\n').split('\n')
const content: ServiceContent = new ServiceContent()
let parentKey: string = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment