Skip to content

Commit 280243f

Browse files
committed
Updates according to review
1 parent 6efead4 commit 280243f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

proposals/text_position.json renamed to proposals/text_find.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "text_position",
2+
"id": "text_find",
33
"summary": "First position of a text in another text",
44
"description": "Checks where the text (also known as *string*) specified for `pattern` is positioned in the text specified for `data` for the first time. No-data values are passed through.",
55
"categories": [
@@ -35,13 +35,13 @@
3535
}
3636
],
3737
"returns": {
38-
"description": "A value >= 0 that indicates the position of the text, `-1` if the text was not found.",
38+
"description": "A value >= 0 that indicates the position of the text, `null` if the text was not found.",
3939
"schema": {
4040
"type": [
4141
"integer",
4242
"null"
4343
],
44-
"minimum": -1
44+
"minimum": 0
4545
}
4646
},
4747
"examples": [
@@ -50,7 +50,7 @@
5050
"data": "Lorem ipsum dolor sit amet",
5151
"pattern": "openEO"
5252
},
53-
"returns": -1
53+
"returns": null
5454
},
5555
{
5656
"arguments": {
@@ -64,7 +64,7 @@
6464
"data": "Lorem ipsum dolor sit amet",
6565
"pattern": "Ipsum Dolor"
6666
},
67-
"returns": -1
67+
"returns": null
6868
},
6969
{
7070
"arguments": {

0 commit comments

Comments
 (0)