Skip to content

Commit 2bed7ab

Browse files
committedFeb 7, 2019
fix substr help (fixes #21192)
1 parent a774499 commit 2bed7ab

File tree

1 file changed

+2
-2
lines changed
  • resources/function_help/json

1 file changed

+2
-2
lines changed
 

‎resources/function_help/json/substr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"type": "function",
44
"description": "Returns a part of a string.",
55
"arguments": [ {"arg":"string","description":"the full input string"},
6-
{"arg":"start","description":"integer representing start position to extract from; if start is negative, the return string will begin at the end of the string minus the start value"},
6+
{"arg":"start","description":"integer representing start position to extract beginning with 1; if start is negative, the return string will begin at the end of the string minus the start value"},
77
{"arg":"length","optional":true,"description":"integer representing length of string to extract; if length is negative, the return string will omit the given length of characters from the end of the string"}
88
],
99
"examples": [ { "expression":"substr('HELLO WORLD',3,5)", "returns":"'LLO W'"},
10-
{ "expression":"substr('HELLO WORLD',6)", "returns":"'WORLD'"},
10+
{ "expression":"substr('HELLO WORLD',6)", "returns":"' WORLD'"},
1111
{ "expression":"substr('HELLO WORLD',-5)","returns":"'WORLD'"},
1212
{ "expression":"substr('HELLO',3,-1)", "returns":"'LL'"},
1313
{ "expression":"substr('HELLO WORLD',-5,2)","returns":"'WO'"},

0 commit comments

Comments
 (0)
Please sign in to comment.