I ran into unexplainable behavior with using fromIndex parameter as documented on MDB, such as '/b.html'.lastIndexOf('.', 1). To work around this, get the substring filename and work with the filename.
I should not have to get the filename (and create a temporary substring) and should be able to specify the parameter to lastIndexOf.
I ran into unexplainable behavior with using
fromIndex
parameter as documented on MDB, such as'/b.html'.lastIndexOf('.', 1)
. To work around this, get the substring filename and work with the filename.I should not have to get the filename (and create a temporary substring) and should be able to specify the parameter to
lastIndexOf
.