Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 1ac0e21

Browse files
authored
Merge pull request #9 from NoRespect/master
remove slackFormatEscaping
2 parents 8e754b2 + e509c28 commit 1ac0e21

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

Sources/AttachmentField.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public struct AttachmentField {
3434

3535
public init(title: String?, value: String?, short: Bool? = nil) {
3636
self.title = title
37-
self.value = value?.slackFormatEscaping
37+
self.value = value
3838
self.short = short
3939
}
4040

Sources/Extensions.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ public extension Date {
2929
}
3030
}
3131

32-
public extension String {
33-
var slackFormatEscaping: String {
34-
var escapedString = replacingOccurrences(of: "&", with: "&")
35-
escapedString = replacingOccurrences(of: "<", with: "&lt;")
36-
escapedString = replacingOccurrences(of: ">", with: "&gt;")
37-
return escapedString
38-
}
39-
}
40-
4132
public extension UInt64 {
4233
static var nanosecondsPerSecond: UInt64 {
4334
#if os(Linux)

0 commit comments

Comments
 (0)