Add special values in isValidTitleElement

pull/82/head
MillenniumEarl 2021-03-22 14:18:57 +01:00
parent 2acf769970
commit bc683b2387
1 changed files with 1 additions and 3 deletions

View File

@ -431,8 +431,6 @@ function pairUpElements(elements: IPostElement[]): IPostElement[] {
.filter((e, i) => isValidTitleElement(e, i, shallow))
.map((e) => shallow.indexOf(e));
//if (indexes.length === 0) indexes = shallow.map((e, i) => i);
// Now we find all the elements between indexes and
// associate them with the previous "title" element
return indexes.map((i, j) => parseGroupData(i, j, indexes, shallow));
@ -452,7 +450,7 @@ function isValidTitleElement(element: IPostElement, index: number, array: IPostE
element.type === "Text" && (isPostfixDoublePoints || nextElementIsValue);
// Special values tha must be set has "title"
const specialValues = ["DOWNLOAD"];
const specialValues = ["DOWNLOAD", "CHANGELOG", "CHANGE-LOG", "GENRE"];
const specialTypes = ["Image"];
// Used to ignore already merged elements with name (ignore spoilers)