We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ef517f commit 43001b1Copy full SHA for 43001b1
Sources/D2Commands/Output/WhisperPostprocessor.swift
@@ -33,6 +33,9 @@ struct WhisperPostprocessor: MessagePostprocessor {
33
}
34
35
private func whisperify(string: String) -> String {
36
- string.replacing(#/(?<prefix>^|\n)(?<suffix>\S)/#) { "\($0.prefix)-# \($0.suffix)" }
+ string
37
+ .replacing(#/```\S*/#, with: "")
38
+ .trimmingCharacters(in: .whitespacesAndNewlines)
39
+ .replacing(#/(?<prefix>^|\n)(?<suffix>\S)/#) { "\($0.prefix)-# \($0.suffix)" }
40
41
0 commit comments