Skip to content
Commit e7cf7ebb authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Avoid another unnecessary string split

We are only interested in the last element and not the whole split list
so doing a full split is inefficient.

Instead use lastIndexOf and mid.

We need to special-case when the string ends with a / since otherwise we
would end up with an empty string
parent a986f15b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment