aboutsummaryrefslogtreecommitdiff
path: root/modules/regex/regex.cpp
diff options
context:
space:
mode:
authorZher Huei Lee2017-06-26 05:52:56 +0800
committerZher Huei Lee2017-06-26 05:52:56 +0800
commit1e1b2d22adcb1857c8b6b12b0b57fb9b6a3d3108 (patch)
treeaa07afcc55a9a0a112bfd0b4dc4f4d7d176922df /modules/regex/regex.cpp
parent760cdbe1a31837bcb142de6912718fd80f57346b (diff)
downloadgodot-1e1b2d22adcb1857c8b6b12b0b57fb9b6a3d3108.tar.gz
godot-1e1b2d22adcb1857c8b6b12b0b57fb9b6a3d3108.tar.zst
godot-1e1b2d22adcb1857c8b6b12b0b57fb9b6a3d3108.zip
Diffstat (limited to 'modules/regex/regex.cpp')
-rw-r--r--modules/regex/regex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/regex/regex.cpp b/modules/regex/regex.cpp
index eb9f1d2ab..338bf4661 100644
--- a/modules/regex/regex.cpp
+++ b/modules/regex/regex.cpp
@@ -1488,7 +1488,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);