Fixed segfault in RegEx.get_capture()
This commit is contained in:
parent
6d54f82ab4
commit
26b977c967
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue