Skip to content

Commit 3bb3232

Browse files
rename minify static func appendIfPreserved to appendIfPermitted
1 parent f4d23e5 commit 3bb3232

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/HTMLKitUtilities/Minify.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension HTMLKitUtilities {
4545
for openingRange in openElementRanges {
4646
let tag = html[openingRange]
4747
result += tag
48-
let closure = Self.defaultPreservedWhitespaceTags.contains(tag) || preservingWhitespaceForTags.contains(tag) ? appendAll : appendIfPreserved
48+
let closure = Self.defaultPreservedWhitespaceTags.contains(tag) || preservingWhitespaceForTags.contains(tag) ? appendAll : appendIfPermitted
4949
let closestClosingRange = closeElementRanges.first(where: { $0.lowerBound > openingRange.upperBound })
5050
if let nextOpeningRange = openElementRanges.getPositive(openingRangeIndex + 1) {
5151
var i = openingRange.upperBound
@@ -95,7 +95,7 @@ extension HTMLKitUtilities {
9595
result += html[i..<bound]
9696
i = bound
9797
}
98-
fileprivate static func appendIfPreserved(
98+
fileprivate static func appendIfPermitted(
9999
html: String,
100100
i: inout String.Index,
101101
bound: String.Index,

0 commit comments

Comments
 (0)