about summary refs log tree commit diff stats
path: root/commands/account
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/compose.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/account/compose.go b/commands/account/compose.go
index e61b593..ad48fe6 100644
--- a/commands/account/compose.go
+++ b/commands/account/compose.go
@@ -53,7 +53,7 @@ func buildBody(args []string) (string, error) {
 	for _, opt := range opts {
 		switch opt.Option {
 		case 'H':
-			if strings.Index(opt.Value, ":") != -1 {
+			if strings.Contains(opt.Value, ":") {
 				// ensure first colon is followed by a single space
 				re := regexp.MustCompile(`^(.*?):\s*(.*)`)
 				headers += re.ReplaceAllString(opt.Value, "$1: $2") + "\n"
d Morgan <djm_uk@protonmail.com> 2021-08-17 12:49:19 +0100 committer David Morgan <djm_uk@protonmail.com> 2021-08-17 12:49:19 +0100 Add new .emacs.d' href='/djm/dotfiles/commit/.emacs.d/lisp/init-windows.el?id=d0db5660caa836755ea8c99471d816484ea9e837'>d0db566 ^
fc3fe82 ^


d0db566 ^








35f590f ^


d0db566 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80