Comparing version 2.3.1 to 2.3.2
@@ -901,3 +901,8 @@ (function (global, factory) { | ||
range.setStart(entry.node, adjustedStart + skips); | ||
if (adjustedStart + skips - entry.node.length === 1) { | ||
// space between the end of the node and the start of the next | ||
range.setStartAfter(entry.node); | ||
} else { | ||
range.setStart(entry.node, adjustedStart + skips); | ||
} | ||
} | ||
@@ -930,3 +935,8 @@ } | ||
range.setEnd(entry.node, adjustedEnd + _skips); | ||
if (adjustedEnd + _skips - entry.node.length === 1) { | ||
// space between the end of the node and the start of the next | ||
range.setEndAfter(entry.node); | ||
} else { | ||
range.setEnd(entry.node, adjustedEnd + _skips); | ||
} | ||
} | ||
@@ -933,0 +943,0 @@ |
{ | ||
"name": "degausser", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Transforms HTML to plain text by eliminating tags from a document.", | ||
@@ -5,0 +5,0 @@ "author": "FlowPub", |
@@ -46,3 +46,8 @@ import { StringCollector } from './stringCollector' | ||
range.setStart(entry.node, adjustedStart + skips) | ||
if (adjustedStart + skips - entry.node.length === 1){ | ||
// space between the end of the node and the start of the next | ||
range.setStartAfter(entry.node) | ||
} else { | ||
range.setStart(entry.node, adjustedStart + skips) | ||
} | ||
} | ||
@@ -64,3 +69,8 @@ } | ||
range.setEnd(entry.node, adjustedEnd + skips) | ||
if (adjustedEnd + skips - entry.node.length === 1){ | ||
// space between the end of the node and the start of the next | ||
range.setEndAfter(entry.node) | ||
} else { | ||
range.setEnd(entry.node, adjustedEnd + skips) | ||
} | ||
} | ||
@@ -67,0 +77,0 @@ break |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
49179
1511
0