@@ -125,11 +125,11 @@ Returns `true` if `search` contains `item`. If `search` is an array, this functi
125
125
126
126
# ### Example using an array
127
127
128
- ` contains(github.event.issue.labels.*.name, 'bug')`
128
+ ` contains(github.event.issue.labels.*.name, 'bug')` returns whether the issue related to the event has a label "bug".
129
129
130
130
# ### Example using a string
131
131
132
- ` contains('Hello world', 'llo')` returns `true`
132
+ ` contains('Hello world', 'llo')` returns `true`.
133
133
134
134
# ## startsWith
135
135
@@ -139,7 +139,7 @@ Returns `true` when `searchString` starts with `searchValue`. This function is n
139
139
140
140
# ### Example
141
141
142
- ` startsWith('Hello world', 'He')` returns `true`
142
+ ` startsWith('Hello world', 'He')` returns `true`.
143
143
144
144
# ## endsWith
145
145
@@ -149,7 +149,7 @@ Returns `true` if `searchString` ends with `searchValue`. This function is not c
149
149
150
150
# ### Example
151
151
152
- ` endsWith('Hello world', 'ld')` returns `true`
152
+ ` endsWith('Hello world', 'ld')` returns `true`.
153
153
154
154
# ## format
155
155
@@ -159,20 +159,20 @@ Replaces values in the `string`, with the variable `replaceValueN`. Variables in
159
159
160
160
# ### Example
161
161
162
- Returns 'Hello Mona the Octocat'
163
-
164
162
` format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat')`
165
163
166
- # ### Example escaping braces
164
+ Returns 'Hello Mona the Octocat'.
167
165
168
- Returns '{Hello Mona the Octocat!}'
166
+ # ### Example escaping braces
169
167
170
168
{% raw %}
171
169
` ` ` js
172
170
format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat')
173
171
` ` `
174
172
{% endraw %}
175
173
174
+ Returns '{Hello Mona the Octocat!}'.
175
+
176
176
# ## join
177
177
178
178
` join( array, optionalSeparator )`
0 commit comments