In line 12, last_slash + 1 < text.length could be changed to last_slash <= text.length to avoid an unnecessary arithmetic operation.
Other than that, I approve.
« Back to merge proposal
In line 12, last_slash + 1 < text.length could be changed to last_slash <= text.length to avoid an unnecessary arithmetic operation.
Other than that, I approve.