You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix for RegEx.sub truncating string when 'end' is used
This commit is contained in:
@@ -334,7 +334,7 @@ String RegEx::sub(const String &p_subject, const String &p_replacement, bool p_a
|
||||
return String();
|
||||
}
|
||||
|
||||
return String(output.ptr(), olength);
|
||||
return String(output.ptr(), olength) + p_subject.substr(length);
|
||||
}
|
||||
|
||||
bool RegEx::is_valid() const {
|
||||
|
||||
Reference in New Issue
Block a user