Skip to content

Commit 50ec29e

Browse files
authored
Merge pull request #97 from rootvc/claude/issue-92-20250529_224433
fix: Update URL regex to support longer TLDs like .systems
2 parents 16b549b + 99a73be commit 50ec29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/terminal-ext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extend = (term) => {
9191
term.stylePrint = (text, wrap = true) => {
9292
// Hyperlinks
9393
const urlRegex =
94-
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g;
94+
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,24}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g;
9595
const urlMatches = text.matchAll(urlRegex);
9696
let allowWrapping = true;
9797
for (match of urlMatches) {

0 commit comments

Comments
 (0)