diff --git a/FlowCryptCommon/Extensions/StringExtensions.swift b/FlowCryptCommon/Extensions/StringExtensions.swift index 21848cb18..0e9827331 100644 --- a/FlowCryptCommon/Extensions/StringExtensions.swift +++ b/FlowCryptCommon/Extensions/StringExtensions.swift @@ -96,10 +96,7 @@ public extension String { } func isHTMLString() -> Bool { - if let _ = self.range(of: "^\\s*()?\\s*<[a-z][\\s\\S]*>\\s*$", options: [.regularExpression, .caseInsensitive]) { - return true - } - return false + return self.range(of: "^\\s*()?\\s*<[a-z][\\s\\S]*>\\s*$", options: [.regularExpression, .caseInsensitive]) != nil } func removingMailThreadQuote() -> String {