Merge pull request #2418 from Tyriar/2417_edge_links

Fix web links addon support in Edge
This commit is contained in:
Daniel Imms
2019-09-11 14:37:54 -07:00
committed by GitHub
+1 -1
View File
@@ -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) {