Fix note rendering for those that contain previewable items or leading and trailing whitespaces
Changelog-Fixed: Fixed note rendering for those that contain previewable items or leading and trailing whitespaces Closes: https://github.com/damus-io/damus/issues/2187 Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
@@ -36,10 +36,9 @@ class damusTests: XCTestCase {
|
||||
XCTAssertEqual(bytes.count, 32)
|
||||
}
|
||||
|
||||
func testTrimmingFunctions() {
|
||||
func testTrimSuffix() {
|
||||
let txt = " bobs "
|
||||
|
||||
XCTAssertEqual(trim_prefix(txt), "bobs ")
|
||||
XCTAssertEqual(trim_suffix(txt), " bobs")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user