Skip to content

Commit

Permalink
Merge branch 'release/3.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
malcommac committed Jul 20, 2019
2 parents b988f46 + c787212 commit b0d317c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Configs/SwiftRichString.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftRichString/Style/StyleGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ public class StyleGroup: StyleProtocol {
removeTag(index: index, with: "\n")
continue
}
guard let attribute = self.styles[tag.name] else { continue }


removeTag(index: index)
if let closeIndex = tag.endingTagIndex {
guard closeIndex < tagQueue.count else { continue }
let closingTag = tagQueue[closeIndex]
removeTag(index: closeIndex)

guard let attribute = self.styles[tag.name] else { continue }
let location = tag.range.location
let length = closingTag.range.location-location
let range = NSRange(location: location, length: length)
Expand Down
2 changes: 1 addition & 1 deletion SwiftRichString.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftRichString"
s.version = "3.0.0"
s.version = "3.0.1"
s.summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
s.description = <<-DESC
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.
Expand Down

0 comments on commit b0d317c

Please sign in to comment.