We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f0cb3f + 085c0c1 commit 7b6b3a5Copy full SHA for 7b6b3a5
Sources/SwiftRichString/Style/StyleGroup.swift
@@ -86,7 +86,7 @@ public class StyleGroup: StyleProtocol {
86
private func extractParametersFromTags(_ string: String) -> [String: String]? {
87
guard let _ = string.firstIndex(of: " ") else { return nil } // no tags
88
89
- let pattern = "\\w*\\s*=\\s*\"?\\s*([\\w\\s%#\\/\\.;:_-]*)\\s*\"?.*?" // maybe shorter?
+ let pattern = "\\w*\\s*=\\s*\"?\\s*([^\"][^\"]*)\\s*\"?.*?" // maybe shorter?
90
guard let regex = try? NSRegularExpression(pattern: pattern, options: .dotMatchesLineSeparators) else {
91
return nil
92
}
0 commit comments