Skip to content

Commit

Permalink
Use a more robust regular expression for repo url
Browse files Browse the repository at this point in the history
Now matches digits, underscores, and decimals

See Issue #11
  • Loading branch information
philtr committed Jan 4, 2012
1 parent 0a11521 commit f1e4d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/background.html
Expand Up @@ -56,7 +56,7 @@
toggle_gitmark (newfolder, sender.tab.url);
});
} else {
repo_url = sender.tab.url.replace(/https:\/\/github.com\/(\w+)\/(\w+)\/.*/i, "https://github.com/$1/$2");
repo_url = sender.tab.url.replace(/https:\/\/github.com\/([a-z0-9_\-\.]+)\/([a-z0-9_\-\.]+)\/.*/i,"https://github.com/$1/$2");
toggle_gitmark (gitmarks, repo_url);
}

Expand Down

0 comments on commit f1e4d8d

Please sign in to comment.