diff --git a/js/battledata.js b/js/battledata.js
index 3ad87d1b6..ad7f3e524 100644
--- a/js/battledata.js
+++ b/js/battledata.js
@@ -396,21 +396,12 @@ var Tools = {
'" target="_blank" onclick="' + onclick + '">' + uri + '';
});
// google [blah]
- // google[blah]
// Google search for 'blah'
str = str.replace(/\bgoogle ?\[([^\]<]+)\]/ig, function(p0, p1) {
p1 = Tools.escapeHTML(encodeURIComponent(Tools.unescapeHTML(p1)));
return '' + p0 + '';
});
- // gl [blah]
- // gl[blah]
- // Google search for 'blah' and visit the first result ("I'm feeling lucky")
- str = str.replace(/\bgl ?\[([^\]<]+)\]/ig, function(p0, p1) {
- p1 = Tools.escapeHTML(encodeURIComponent(Tools.unescapeHTML(p1)));
- return '' + p0 + '';
- });
// wiki [blah]
// Search Wikipedia for 'blah' (and visit the article for 'blah' if it exists)
str = str.replace(/\bwiki ?\[([^\]<]+)\]/ig, function(p0, p1) {
@@ -418,6 +409,20 @@ var Tools = {
return '' + p0 + '';
});
+ // server issue #pullreq
+ // Links to github Pokemon Showdown server pullreq number
+ str = str.replace(/\bserver issue ?#(\d+)/ig, function(p0, p1) {
+ p1 = Tools.escapeHTML(encodeURIComponent(Tools.unescapeHTML(p1)));
+ return '' + p0 + '';
+ });
+ // client issue #pullreq
+ // Links to github Pokemon Showdown client pullreq number
+ str = str.replace(/\bclient issue ?#(\d+)/ig, function(p0, p1) {
+ p1 = Tools.escapeHTML(encodeURIComponent(Tools.unescapeHTML(p1)));
+ return '' + p0 + '';
+ });
// [[blah]]
// Short form of gl[blah]
str = str.replace(/\[\[([^< ](?:[^<`]*?[^< ])??)\]\]/ig, function(p0, p1) {