Remove only - from the element value

pull/83/head
MillenniumEarl 2021-03-21 16:56:37 +01:00
parent 14a290468f
commit d0e87e0ead
1 changed files with 2 additions and 2 deletions

View File

@ -419,7 +419,7 @@ function associateNameToElements(elements: IPostElement[]): IPostElement[] {
} }
} }
return pairs; return pairUp(elements);
} }
function pairUp(elements: IPostElement[]): IPostElement[] { function pairUp(elements: IPostElement[]): IPostElement[] {
@ -463,7 +463,7 @@ function parseGroupData(
elements: IPostElement[] elements: IPostElement[]
): IPostElement { ): IPostElement {
// Local variables // Local variables
const endsWithSpecialCharsRegex = /[-!$%^&*()_+|~=`{}[\]:";'<>?,./]$/; const endsWithSpecialCharsRegex = /[-]$/;
const startsWithDoublePointsRegex = /^[:]/; const startsWithDoublePointsRegex = /^[:]/;
// Find all the elements (title + data) of the same data group // Find all the elements (title + data) of the same data group