diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-06-26 22:33:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 22:33:16 +0200 |
commit | 0db10b99928da024d8aa16dc72993d7229686913 (patch) | |
tree | 22ccab7583ec434bb396afbc3dbd7f47a52aa0e2 /modules/regex | |
parent | 4b85b663394a65b1514c1a4645363e36ecf246f8 (diff) | |
parent | 1e1b2d22adcb1857c8b6b12b0b57fb9b6a3d3108 (diff) |
Merge pull request #9379 from leezh/regex_bind_fix
Fixed RegEx::search missing return type hint
Diffstat (limited to 'modules/regex')
-rw-r--r-- | modules/regex/regex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/regex/regex.cpp b/modules/regex/regex.cpp index c728657d6b..c3e97e357d 100644 --- a/modules/regex/regex.cpp +++ b/modules/regex/regex.cpp @@ -1496,7 +1496,7 @@ void RegEx::_bind_methods() { ClassDB::bind_method(D_METHOD("clear"), &RegEx::clear); ClassDB::bind_method(D_METHOD("compile", "pattern"), &RegEx::compile); - ClassDB::bind_method(D_METHOD("search", "text", "start", "end"), &RegEx::search, DEFVAL(0), DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("search:RegExMatch", "text", "start", "end"), &RegEx::search, DEFVAL(0), DEFVAL(-1)); ClassDB::bind_method(D_METHOD("sub", "text", "replacement", "all", "start", "end"), &RegEx::sub, DEFVAL(false), DEFVAL(0), DEFVAL(-1)); ClassDB::bind_method(D_METHOD("is_valid"), &RegEx::is_valid); ClassDB::bind_method(D_METHOD("get_pattern"), &RegEx::get_pattern); |