jfroelich / rss-reader

A simple Chrome extension for viewing RSS feeds
Other
10 stars 0 forks source link

Skip calculation of file name in get-path-extension #788

Open jfroelich opened 5 years ago

jfroelich commented 5 years ago

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.