Log bad linkifier instead of throwing
This commit is contained in:
+1
-5
@@ -212,11 +212,7 @@ export class Linkifier implements ILinkifier {
|
||||
if (!uri) {
|
||||
// something matched but does not comply with the given matchIndex
|
||||
// since this is most likely a bug the regex itself we simply do nothing here
|
||||
// DEBUG: print match and throw
|
||||
if ((<any>this._terminal).debug) {
|
||||
this._logService.error({ match, matcher });
|
||||
throw new Error('match found without corresponding matchIndex');
|
||||
}
|
||||
this._logService.debug('match found without corresponding matchIndex', match, matcher);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user