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? 😀
xterm-addon-web-links
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.