diff --git a/WordPressShared.podspec b/WordPressShared.podspec index 93ea90a..26144a5 100644 --- a/WordPressShared.podspec +++ b/WordPressShared.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "WordPressShared" - s.version = "1.0.4" + s.version = "1.0.5" s.summary = "Shared components used in building the WordPress iOS apps and other library components." s.description = <<-DESC diff --git a/WordPressShared/Core/Utility/RichContentFormatter.swift b/WordPressShared/Core/Utility/RichContentFormatter.swift index 8e9feac..4736ccb 100644 --- a/WordPressShared/Core/Utility/RichContentFormatter.swift +++ b/WordPressShared/Core/Utility/RichContentFormatter.swift @@ -11,6 +11,7 @@ import Foundation static let styleTags = try! NSRegularExpression(pattern: "", options: .caseInsensitive) static let scriptTags = try! NSRegularExpression(pattern: "", options: .caseInsensitive) static let tableTags = try! NSRegularExpression(pattern: "
test
test
" - let styleStr = "test
test
" + let str = "test
test
" + let styleStr = "test
test
\n" let sanitizedStr = RichContentFormatter.removeForbiddenTags(styleStr) XCTAssertTrue(str == sanitizedStr, "The forbidden tags were not removed.") }