Skip to content

Commit 37d5027

Browse files
committed
Merge branch 'release/3.0.2'
2 parents b0d317c + 4564717 commit 37d5027

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.0
1+
// swift-tools-version:5.1
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription

Sources/SwiftRichString/Attributes/FontConvertible.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extension Font: FontConvertible {
6262
#elseif os(watchOS)
6363
return Font(name: self.fontName, size: (size ?? WATCHOS_SYSTEMFONT_SIZE))!
6464
#else
65-
return Font(name: self.fontName, size: (size ?? Font.systemFontSize))!
65+
return Font(descriptor: self.fontDescriptor, size: (size ?? Font.systemFontSize))
6666
#endif
6767
}
6868

Sources/SwiftRichString/Style/StyleGroup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class StyleGroup: StyleProtocol {
8686
private func extractParametersFromTags(_ string: String) -> [String: String]? {
8787
guard let _ = string.firstIndex(of: " ") else { return nil } // no tags
8888

89-
let pattern = "\\w*\\s*=\\s*\"?\\s*([^\"][^\"]*)\\s*\"?.*?" // maybe shorter?
89+
let pattern = "[\\w-]*\\s*=\\s*\"?\\s*([^\"][^\"]*)\\s*\"?.*?" // maybe shorter?
9090
guard let regex = try? NSRegularExpression(pattern: pattern, options: .dotMatchesLineSeparators) else {
9191
return nil
9292
}

SwiftRichString.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SwiftRichString"
3-
s.version = "3.0.1"
3+
s.version = "3.0.2"
44
s.summary = "Elegant Strings & Attributed Strings Toolkit for Swift"
55
s.description = <<-DESC
66
SwiftRichString is the best toolkit to work easily with Strings and Attributed Strings.
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
1616
s.source = { :git => "https://github.com/malcommac/SwiftRichString.git", :tag => s.version.to_s }
1717
s.source_files = "Sources/**/*"
1818
s.frameworks = "Foundation"
19-
s.swift_version = "5.0"
19+
s.swift_versions = ['5.0', '5.1']
2020
end

0 commit comments

Comments
 (0)