Skip to content

Instantly share code, notes, and snippets.

@tristen
Created May 26, 2011 21:21
Show Gist options
  • Save tristen/994116 to your computer and use it in GitHub Desktop.
Save tristen/994116 to your computer and use it in GitHub Desktop.
if (oldIE) {
if (path.charAt(0) === 'm') {
return;
}
else if (path.charAt(0) === '#') {
path = /^([a-z]+:\/\/)?(#[\w\-]+)$/.exec(path)[2];
}
else {
path = /^([a-z]+:\/\/.+?)?(\/.*)$/.exec(path)[2];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment