File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
44import PackageDescription
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 11Pod ::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' ]
2020end
You can’t perform that action at this time.
0 commit comments