Skip to content
Snippets Groups Projects
Commit 18b3020c authored by Scott Berg's avatar Scott Berg Committed by Scott Berg
Browse files

Update regex used for parsing sub requirement symbols.

parent f9fb3ba6
No related branches found
No related tags found
No related merge requests found
Pipeline #43369 passed
......@@ -8,7 +8,7 @@ export class RequirementLinePipe implements PipeTransform {
case 'okSubrequirementTLine':
case 'noSubrequirementTLine': {
const singleLine = lines.join(' ').trim();
const matches = singleLine.match(/^((IP)|(IN-P)|(PL)|(R)|(<>)|\+|\-|\*)+/g);
const matches = singleLine.match(/^((IP)|(IN-P)|(PL)|(R)|(<>)|\+|\-|\*)+(?![a-zA-Z])/g);
if (matches && matches.length > 0) {
lines = [singleLine.substr(matches[0].length)];
......
......@@ -8,7 +8,7 @@ export class RequirementSymbolsPipe implements PipeTransform {
public transform(lines: string[]): AuditSymbol[] {
const singleLine = lines.join(' ').trim();
const matches = singleLine.match(/^((IP)|(IN-P)|(PL)|(R)|(<>)|\+|\-|\*)+/g);
const matches = singleLine.match(/^((IP)|(IN-P)|(PL)|(R)|(<>)|\+|\-|\*)+(?![a-zA-Z])/g);
const symbols: AuditSymbol[] = this.symbols.getByTaxonomy('requirement');
if (matches && matches.length > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment