store flags for songs

This commit is contained in:
2020-04-22 14:40:42 +02:00
committed by smuddy
parent 90ab0a76ae
commit 1231b69ff0
15 changed files with 91 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ export interface Song {
text: string;
title: string;
type: string;
flags: string;
legalType: string;
legalLink: string;

View File

@@ -41,6 +41,7 @@ export class TextRenderingService {
}
public parse(text: string): Section[] {
if (!text) return [];
const arrayOfLines = text.split(/\r?\n/).filter(_ => _);
const indices = {
[SectionType.Bridge]: 0,