mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Support query string in linkifier
This commit is contained in:
+2
-1
@@ -15,8 +15,9 @@ const ipClause = '((\\d{1,3}\\.){3}\\d{1,3})';
|
||||
const portClause = '(:\\d{1,5})';
|
||||
const hostClause = '((' + domainBodyClause + '\\.' + tldClause + ')|' + ipClause + ')' + portClause + '?';
|
||||
const pathClause = '(\\/[\\/\\w\\.-]*)*';
|
||||
const queryStringClause = '(\\?[\\w\\[\\]\\(\\)\\/\\?\\!#@$&\'*+,:;]*)?';
|
||||
const negatedPathCharacterSet = '[^\\/\\w\\.-]+';
|
||||
const bodyClause = hostClause + pathClause;
|
||||
const bodyClause = hostClause + pathClause + queryStringClause;
|
||||
const start = '(?:^|' + negatedDomainCharacterSet + ')(';
|
||||
const end = ')($|' + negatedPathCharacterSet + ')';
|
||||
const strictUrlRegex = new RegExp(start + protocolClause + bodyClause + end);
|
||||
|
||||
Reference in New Issue
Block a user