MSUTeam/MSU

[BUG] ::MSU.regexMatch is not completely safe

Opened this issue · 0 comments

Suor commented

In this condition it's better to check whether both start and end are within 0 to len:

return _capture[_group].end > 0 && _capture[_group].begin < _string.len() ? _string.slice(_capture[_group].begin, _capture[_group].end) : null;

There used to be an arcane bug in modding hooks vs modern hooks about this