mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Remove bad trim optimization from Linkifier
This prevents whitespace from going missing after links are applied. Fixes #558
This commit is contained in:
+1
-1
@@ -148,7 +148,7 @@ export class Linkifier {
|
||||
const searchIndex = node.textContent.indexOf(uri);
|
||||
if (searchIndex >= 0) {
|
||||
const linkElement = this._createAnchorElement(uri, handler);
|
||||
if (node.textContent.trim().length === uri.length) {
|
||||
if (node.textContent.length === uri.length) {
|
||||
// Matches entire string
|
||||
if (node.nodeType === Node.TEXT_NODE) {
|
||||
this._replaceNode(node, linkElement);
|
||||
|
||||
Reference in New Issue
Block a user