Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Two regex fixes #2

Merged
merged 2 commits into from Dec 31, 2011
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -9,7 +9,7 @@ window.onload = function () {
var links = document.getElementsByTagName('a');
for(var i = 0; i < links.length; i++) {
var link = links[i];
- if(link.href && link.href.match(/https?:\/\//)) {
+ if(link.href && link.href.match(/^(?:https?:)?\/\//)) {
if(!window.opera && navigator.userAgent.search(/msie/i) == -1) {
link.href = "data:text/html," +
"<!doctype html><html><head>" +