hack around DOM renderer issue, fix api tests

This commit is contained in:
Jörg Breitbart
2022-12-04 22:26:29 +01:00
parent d19361ac85
commit 39c2e57ad3
5 changed files with 21 additions and 16 deletions
@@ -7,9 +7,10 @@ import { Terminal, ITerminalAddon, IDisposable } from 'xterm';
import { ILinkProviderOptions, WebLinkProvider } from './WebLinkProvider';
// consider everthing starting with http:// or https://
// up to first whitespace as url
// gets further narrowed down with URL later on
const strictUrlRegex = /https?:[/]{2}\S*/;
// up to first whitespace, `"` or `'` as url
// NOTE: The repeated end clause is needed to not match a dangling `:`
// resembling the old (...)*([^:"\'\\s]) final path clause
const strictUrlRegex = /https?:[/]{2}[^\s^"^']*[^\s^"^'^:]/;
function handleLink(event: MouseEvent, uri: string): void {
const newWindow = window.open();