I get the feeling this approach won't work well with files such as foo.bar.js. You may want to reverse() after splitting and picking the first entry as extension instead.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I get the feeling this approach won't work well with files such as
foo.bar.js
. You may want to reverse() after splitting and picking the first entry as extension instead.