This commit is contained in:
2020-03-16 21:10:06 +01:00
committed by smuddy
parent 5e6a30d0e4
commit 5dd95153bb
2 changed files with 7 additions and 8 deletions

View File

@@ -7,8 +7,7 @@ export enum SectionType {
}
export enum LineType {
title,
chrod,
chord,
text,
}
@@ -49,7 +48,7 @@ export class TextRenderingService {
private getLineOfLineText(text: string): Line {
const matches = !!text.match(this.regexChords);
const type = matches ? LineType.chrod : LineType.text;
const type = matches ? LineType.chord : LineType.text;
return {type, text}
}