summaryrefslogtreecommitdiff
path: root/core/variant_call.cpp
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2019-05-03 14:21:04 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2019-05-03 19:46:56 +0200
commit0b8a785539ce7823855944aeff33aad3773aad6a (patch)
tree4b461230087794549720f500580cabfdf32afff6 /core/variant_call.cpp
parent913620a9b804b10a880f6274df1d8ef44c27cb54 (diff)
Make second parameter of substr optional
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r--core/variant_call.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index f9f73b4e51..df45262819 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -1494,7 +1494,7 @@ void register_variant_methods() {
ADDFUNC1R(STRING, INT, String, casecmp_to, STRING, "to", varray());
ADDFUNC1R(STRING, INT, String, nocasecmp_to, STRING, "to", varray());
ADDFUNC0R(STRING, INT, String, length, varray());
- ADDFUNC2R(STRING, STRING, String, substr, INT, "from", INT, "len", varray());
+ ADDFUNC2R(STRING, STRING, String, substr, INT, "from", INT, "len", varray(-1));
ADDFUNC2R(STRING, INT, String, find, STRING, "what", INT, "from", varray(0));