]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Support percent and numbers in query/hash fragments
authorDaniel Imms <daimms@microsoft.com>
Thu, 23 Feb 2017 18:02:18 +0000 (10:02 -0800)
committerDaniel Imms <daimms@microsoft.com>
Thu, 23 Feb 2017 18:02:18 +0000 (10:02 -0800)
src/Linkifier.ts

index 6ead8e09f22b3ff60314fbe70c34d254c1ab9d00..280ad42d245ef7043bcff0d4d1adeff868b9f6f7 100644 (file)
@@ -16,7 +16,7 @@ const localHostClause = '(localhost)';
 const portClause = '(:\\d{1,5})';
 const hostClause = '((' + domainBodyClause + '\\.' + tldClause + ')|' + ipClause + '|' + localHostClause + ')' + portClause + '?';
 const pathClause = '(\\/[\\/\\w\\.-]*)*';
-const queryStringHashFragmentCharacterSet = '[\\w\\[\\]\\(\\)\\/\\?\\!#@$&\'*+,:;\\=\\.\\-]*';
+const queryStringHashFragmentCharacterSet = '[0-9\\w\\[\\]\\(\\)\\/\\?\\!#@$%&\'*+,:;\\=\\.\\-]*';
 const queryStringClause = '(\\?' + queryStringHashFragmentCharacterSet + ')?';
 const hashFragmentClause = '(#' + queryStringHashFragmentCharacterSet + ')?';
 const negatedPathCharacterSet = '[^\\/\\w\\.-]+';