Skip to content

Commit

Permalink
fix(regex): fix iphone regex (lookbehind expression) (#1093)
Browse files Browse the repository at this point in the history
* WIP

* confirmed ok and removed logs

* fix codeQL vulnerability

* fix codeQL vulnerability #2

Co-authored-by: Maxime Lamer <[email protected]>
  • Loading branch information
PhilippeLafreniere18 and LAMM26 authored Aug 15, 2022
1 parent 362d70d commit a4c8664
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ export class FeatureDetailsComponent implements OnInit, OnDestroy {
}

getEmbeddedLinkText(value) {
const regex = /(?<=>).*?(?=<|$)/;
const text = value.match(regex)[0];
const regex = /(?:>).*?(?=<|$)/;
let text = value.match(regex)[0] as string;
text = text.replace(/>/g, '');
return text;
}

Expand Down

0 comments on commit a4c8664

Please sign in to comment.