Remove only - from the element value
parent
14a290468f
commit
d0e87e0ead
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue