Files
xterm.js/addons/xterm-addon-web-links
Wes Bos 6f666f56c1 Extend TLD matching to 14 chars
I ran into this issue with hyper wasn't highlighting my `.localhost` domains, which is a legitimate TLD and used by caddy server to allow SSL certs locally.

Then I went down the rabbit hole of TLDs and found currently the longest TLDs are 14 chars which include .BANANAREPUBLIC, .COOKINGCHANNEL, .KERRYLOGISTICS, .WEATHERCHANNEL

I'm not regex expert, but I *think* this should work? 😀
2022-01-05 16:28:05 -05:00
..
2022-01-05 16:28:05 -05:00
2019-06-04 11:07:11 -07:00
2019-06-04 11:07:11 -07:00
2021-12-22 10:26:30 -08:00
2019-09-09 09:28:33 -07:00
2019-06-10 14:28:07 -07:00

An addon for xterm.js that enables web links. This addon requires xterm.js v4+.

Install

npm install --save xterm-addon-web-links

Usage

import { Terminal } from 'xterm';
import { WebLinksAddon } from 'xterm-addon-web-links';

const terminal = new Terminal();
terminal.loadAddon(new WebLinksAddon());

See the full API for more advanced usage.