diff options
Diffstat (limited to 'drivers/nrex/regex.cpp')
| -rw-r--r-- | drivers/nrex/regex.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/nrex/regex.cpp b/drivers/nrex/regex.cpp index 0a813c349..2707249a6 100644 --- a/drivers/nrex/regex.cpp +++ b/drivers/nrex/regex.cpp @@ -54,7 +54,9 @@ bool RegEx::is_valid() const { }; int RegEx::get_capture_count() const { - + + ERR_FAIL_COND_V( !exp.valid(), 0 ); + return exp.capture_size(); } |
