shortcode-tree
Advanced tools
Comparing version 1.4.10 to 1.4.11
@@ -128,3 +128,7 @@ 'use strict'; | ||
// Topmost node with no children | ||
nodeChildText = node.shortcode.stringifyAsHtml(null, options); | ||
if (node.shortcode) { | ||
nodeChildText = node.shortcode.stringifyAsHtml(null, options); | ||
} else { | ||
nodeChildText = node.text || ""; | ||
} | ||
} | ||
@@ -131,0 +135,0 @@ } |
{ | ||
"name": "shortcode-tree", | ||
"version": "1.4.10", | ||
"version": "1.4.11", | ||
"description": "Parser library for reading short codes (BB codes) into a tree structure", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -151,2 +151,9 @@ let ShortcodeTree = require('../src').ShortcodeTree; | ||
}); | ||
it('does not crash and burn on html equiv text generation with blank input', function () { | ||
let testInput = ``; | ||
let html = ShortcodeTree.generateHtmlEquivalent(testInput); | ||
expect(html).to.equal(""); | ||
}); | ||
}); | ||
@@ -153,0 +160,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79035
1397