Skip to content

Commit 383aca1

Browse files
authored
Merge pull request #613 from linear-b/Fix-capture-return-type
fix capture return type
2 parents 6167aac + da7d145 commit 383aca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/filter-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following functions are supported in addition to the built-in functions prov
2020

2121
| Function | Input | Args | Output |
2222
| -------------------------------------------------------------------------------------------------------------- | ---------------------- | ------------------------------- | ---------------------- |
23-
| [`capture`](#capture)<br />Find and return the first occurrence of a regex in the input string | String | `regex` | [Objects] |
23+
| [`capture`](#capture)<br />Find and return the first occurrence of a regex in the input string | String | `regex` | String |
2424
| [`difference`](#difference)<br />Given two lists, keep only items that are in the 1st list but not in the 2nd. | [Objects] | `list` | [Objects] |
2525
| [`every`](#every)<br />Checks whether all element in the list are `true` | [Bool] | - | Bool |
2626
| [`filter`](#filter)<br />Reduce list of items into a list of same items that match the specified term | [String]<br />[Object] | `regex`, `term`, `list`, `attr` | [String]<br />[Object] |
@@ -94,7 +94,7 @@ Extract the first match of the regex in the input string. If no match is found,
9494
| -------- | ---------|-----------|------------------------------------------------ |
9595
| - | Input | String | The string to find the match in |
9696
| `regex` | Input | String | Search term to match with the input string |
97-
| - | Output | Bool | The first substring that match the provided regex |
97+
| - | Output | String | The first substring that matches the provided regex |
9898

9999
</div>
100100

0 commit comments

Comments
 (0)