Adding 'source' to register types
This commit is contained in:
@@ -26,6 +26,7 @@ export interface Register {
|
||||
text: string;
|
||||
notes: Note[];
|
||||
issue_4_only: boolean;
|
||||
source: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,7 +74,8 @@ export function processRegisterBlock(paragraph: string, registers: Register[]) {
|
||||
description: description,
|
||||
notes: [],
|
||||
text: "",
|
||||
issue_4_only: false
|
||||
issue_4_only: false,
|
||||
source: []
|
||||
};
|
||||
|
||||
const descriptionLines = description.split('\n');
|
||||
@@ -84,6 +86,7 @@ export function processRegisterBlock(paragraph: string, registers: Register[]) {
|
||||
if(line.includes('Issue 4 Only')) reg.issue_4_only = true;
|
||||
|
||||
const trimmedLine = line.trim();
|
||||
reg.source.push(trimmedLine);
|
||||
|
||||
if (trimmedLine.startsWith('//')) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user