mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 23:54:22 +01:00
fixed bug in textstyleparser
* bold text wasn't correctly parsed see #382
This commit is contained in:
@@ -32,3 +32,9 @@ func TestBoldAndItalicMessage(t *testing.T) {
|
||||
expectMessageEqual(t, message, "This is a bold and italic message")
|
||||
expectFormatStringsEqual(t, signalCliFormatStrings, []string{"10:4:BOLD", "19:6:ITALIC"})
|
||||
}
|
||||
|
||||
func TestTwoBoldFormattedStrings(t *testing.T) {
|
||||
message, signalCliFormatStrings := ParseMarkdownMessage("This is a **bold** and another **bold** message")
|
||||
expectMessageEqual(t, message, "This is a bold and another bold message")
|
||||
expectFormatStringsEqual(t, signalCliFormatStrings, []string{"10:4:BOLD", "27:4:BOLD"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user