Skip to content

Commit

Permalink
Fix web links addon support in Edge
Browse files Browse the repository at this point in the history
regex.flags isn't supported on Edge

Fixes #2417
  • Loading branch information
Tyriar committed Sep 11, 2019
1 parent 3aa0599 commit 324dc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/Linkifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class Linkifier implements ILinkifier {
*/
private _doLinkifyRow(rowIndex: number, text: string, matcher: ILinkMatcher): void {
// clone regex to do a global search on text
const rex = new RegExp(matcher.regex.source, matcher.regex.flags + 'g');
const rex = new RegExp(matcher.regex.source, (matcher.regex.flags || '') + 'g');
let match;
let stringIndex = -1;
while ((match = rex.exec(text)) !== null) {
Expand Down

0 comments on commit 324dc8d

Please sign in to comment.