If I pull in window.location
var curURL = window.location;
currURL = currURL.split("?").split("#");
How can I detect if currURL has a trailing slash (due to a query string that may have been present)?
http://www.mydomain.com returns http://www.mydomain.com
http://www.mydomain.com/?a=b returns http://www.mydomain.com/
But I want a regex to test if trailing slash is there or not... or best solution to remove that trailing slash