Skip to content

Commit 7c468b2

Browse files
committed
Fix typo in filter documentation.
1 parent b15c09c commit 7c468b2

2 files changed

Lines changed: 18 additions & 16 deletions

File tree

sites/hurl.dev/_data/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@
273273
- title: base64UrlSafeDecode
274274
- title: base64UrlSafeEncode
275275
- title: count
276+
- title: dateFormat
276277
- title: daysAfterNow
277278
- title: daysBeforeNow
278279
- title: decode
279280
- title: first
280-
- title: format
281281
- title: htmlEscape
282282
- title: htmlUnescape
283283
- title: jsonpath
@@ -295,6 +295,8 @@
295295
- title: urlDecode
296296
- title: urlEncode
297297
- title: urlQueryParam
298+
- title: utf8Decode
299+
- title: utf8Encode
298300
- title: xpath
299301
- title: Templates
300302
path: /docs/templates.html

sites/hurl.dev/_docs/filters.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ jsonpath "$.books" count == 12
7272
| [base64UrlSafeDecode](#base64urlsafedecode) | Decodes a Base64 encoded string into bytes (using [Base64 URL safe encoding]). | string | bytes |
7373
| [base64UrlSafeEncode](#base64urlsafeencode) | Encodes bytes into Base64 encoded string (using [Base64 URL safe encoding]). | bytes | string |
7474
| [count](#count) | Counts the number of items in a collection. | collection | number |
75+
| [dateFormat](#dateFormat) | Formats a date to a string given [a specification format]. | date | string |
7576
| [daysAfterNow](#daysafternow) | Returns the number of days between now and a date in the future. | date | number |
7677
| [daysBeforeNow](#daysbeforenow) | Returns the number of days between now and a date in the past. | date | number |
7778
| [decode](#decode) | Decodes bytes to string using encoding. | bytes | string |
7879
| [first](#first) | Returns the first element from a collection. | collection | any |
79-
| [dateFormat](#dateFormat) | Formats a date to a string given [a specification format]. | date | string |
8080
| [htmlEscape](#htmlescape) | Converts the characters `&`, `<` and `>` to HTML-safe sequence. | string | string |
8181
| [htmlUnescape](#htmlunescape) | Converts all named and numeric character references (e.g. `&gt;`, `&#62;`, `&#x3e;`) to the corresponding Unicode characters. | string | string |
8282
| [jsonpath](#jsonpath) | Evaluates a [JSONPath] expression. | string | any |
@@ -154,6 +154,19 @@ HTTP 200
154154
jsonpath "$.books" count == 12
155155
```
156156

157+
### dateFormat
158+
159+
*Formerly known as `format`, which is deprecated and will be removed in a future major version.*
160+
161+
Formats a date to a string given [a specification format].
162+
163+
```hurl
164+
GET https://example.org
165+
HTTP 200
166+
[Asserts]
167+
cookie "LSID[Expires]" dateFormat "%a, %d %b %Y %H:%M:%S" == "Wed, 13 Jan 2021 22:23:01"
168+
```
169+
157170
### daysAfterNow
158171

159172
Returns the number of days between now and a date in the future.
@@ -202,19 +215,6 @@ HTTP 200
202215
jsonpath "$.books" first == "Dune"
203216
```
204217

205-
### dateFormat
206-
207-
*Formerly known as `format`, which is deprecated and will be removed in a future major version.*
208-
209-
Formats a date to a string given [a specification format].
210-
211-
```hurl
212-
GET https://example.org
213-
HTTP 200
214-
[Asserts]
215-
cookie "LSID[Expires]" dateFormat "%a, %d %b %Y %H:%M:%S" == "Wed, 13 Jan 2021 22:23:01"
216-
```
217-
218218
### htmlEscape
219219

220220
Converts the characters `&`, `<` and `>` to HTML-safe sequence.
@@ -484,4 +484,4 @@ bytes decode "gb2312" xpath "string(//body)" == "你好世界"
484484
[JSONPath]: https://goessner.net/articles/JsonPath/
485485
[Base64 encoded string]: https://datatracker.ietf.org/doc/html/rfc4648#section-4
486486
[Base64 URL safe encoding]: https://datatracker.ietf.org/doc/html/rfc4648#section-5
487-
[Encoding labels]: https://encoding.spec.whatwg.org/]https://encoding.spec.whatwg.org/#concept-encoding-get
487+
[Encoding Standard]: https://encoding.spec.whatwg.org/]https://encoding.spec.whatwg.org/#concept-encoding-get

0 commit comments

Comments
 (0)