diff --git a/src/scripts/scrape-data/post-parse.ts b/src/scripts/scrape-data/post-parse.ts index cc5e24a..e1d2047 100644 --- a/src/scripts/scrape-data/post-parse.ts +++ b/src/scripts/scrape-data/post-parse.ts @@ -419,7 +419,7 @@ function associateNameToElements(elements: IPostElement[]): IPostElement[] { } } - return pairs; + return pairUp(elements); } function pairUp(elements: IPostElement[]): IPostElement[] { @@ -463,7 +463,7 @@ function parseGroupData( elements: IPostElement[] ): IPostElement { // Local variables - const endsWithSpecialCharsRegex = /[-!$%^&*()_+|~=`{}[\]:";'<>?,./]$/; + const endsWithSpecialCharsRegex = /[-]$/; const startsWithDoublePointsRegex = /^[:]/; // Find all the elements (title + data) of the same data group