diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-05-03 14:21:04 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-05-03 19:46:56 +0200 |
commit | 0b8a785539ce7823855944aeff33aad3773aad6a (patch) | |
tree | 4b461230087794549720f500580cabfdf32afff6 /core/variant_call.cpp | |
parent | 913620a9b804b10a880f6274df1d8ef44c27cb54 (diff) |
Make second parameter of substr optional
Diffstat (limited to 'core/variant_call.cpp')
-rw-r--r-- | core/variant_call.cpp | 2 |
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)); |