diff --git a/src/app/dars/pipes/requirement-line.pipe.ts b/src/app/dars/pipes/requirement-line.pipe.ts index 918c29515c143415e1e0f02079a7ee06c8b9a77e..b278e52b0331e3687077f133841b667d2fcdb3f1 100644 --- a/src/app/dars/pipes/requirement-line.pipe.ts +++ b/src/app/dars/pipes/requirement-line.pipe.ts @@ -10,10 +10,9 @@ export class RequirementLinePipe implements PipeTransform { const singleLine = lines.join(' ').trim(); const matches = singleLine.match(/^((IP)|(IN-P)|(PL)|(R)|(<>)|\+|\-|\*)+(?![a-zA-Z])/g); - if (matches && matches.length > 0) { - lines = [singleLine.substr(matches[0].length)]; - } - break; + // If symbol matches are found return the single line without the matches + // Else return just the single line + return matches && matches.length > 0 ? [singleLine.substr(matches[0].length)] : [singleLine]; } }