From 324dc8d4dc45f49c8cd0604453ea0dbe49c59bb6 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Wed, 11 Sep 2019 14:35:36 -0700 Subject: [PATCH] Fix web links addon support in Edge regex.flags isn't supported on Edge Fixes #2417 --- src/browser/Linkifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/Linkifier.ts b/src/browser/Linkifier.ts index a5454ac547..53a32aa7f2 100644 --- a/src/browser/Linkifier.ts +++ b/src/browser/Linkifier.ts @@ -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) {