Polish
This commit is contained in:
+2
-2
@@ -56,7 +56,8 @@ export class Linkifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attaches a handler for hypertext links, overriding default <a> behavior.
|
* Attaches a handler for hypertext links, overriding default <a> behavior
|
||||||
|
* for standard http(s) links.
|
||||||
* @param {LinkHandler} handler The handler to use, this can be cleared with
|
* @param {LinkHandler} handler The handler to use, this can be cleared with
|
||||||
* null.
|
* null.
|
||||||
*/
|
*/
|
||||||
@@ -133,7 +134,6 @@ export class Linkifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const linkElement = this._createAnchorElement(uri, handler);
|
const linkElement = this._createAnchorElement(uri, handler);
|
||||||
// TODO: Check if childNodes check is needed
|
|
||||||
if (node.textContent.trim().length === uri.length) {
|
if (node.textContent.trim().length === uri.length) {
|
||||||
// Matches entire string
|
// Matches entire string
|
||||||
if (node.nodeType === Node.TEXT_NODE) {
|
if (node.nodeType === Node.TEXT_NODE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user