From 93281648ab783f78f7fa08faa690e172b1b0e338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Thu, 20 Apr 2017 16:07:07 +0200 Subject: [PATCH] Cleaned up PR #949 --- index.html | 14 ++------------ server.js | 4 ++-- try.html | 14 ++++++++++++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index 68f148b47275b7..63cf425d36b741 100644 --- a/index.html +++ b/index.html @@ -394,8 +394,8 @@

Downloads

https://img.shields.io/chrome-web-store/d/nimelepbpejjlbmoobocpfnjhihnpked.svg Website: - - https://img.shields.io/website-up-down-green-red-my--website/http/shields.io.svg + + https://img.shields.io/website-up-down-green-red/http/shields.io.svg CocoaPods: @@ -1202,16 +1202,10 @@

Like This?

- - - + + @@ -1201,10 +1201,16 @@

Like This?

Dashes -- @@ -1222,10 +1216,6 @@

Like This?

_ Underscore
Slashes // - → - / Slash
-
_ or Space     Space diff --git a/server.js b/server.js index b7183a5ce1104e..62e4597a31debb 100644 --- a/server.js +++ b/server.js @@ -5839,7 +5839,7 @@ cache(function(data, match, sendBadge, request) { var offlineMessage = escapeFormatSlashes(match[4] != null ? match[4] : "offline"); var onlineColor = escapeFormatSlashes(match[7] != null ? match[7] : "brightgreen"); var offlineColor = escapeFormatSlashes(match[9] != null ? match[9] : "red"); - var websiteName = escapeFormatSlashes(match[12] != null ? match[11] : "website"); + var label = escapeFormatSlashes(match[12] != null ? match[11] : "website"); var userProtocol = match[14]; var userURI = match[15]; var format = match[16]; @@ -5848,7 +5848,7 @@ cache(function(data, match, sendBadge, request) { method: 'HEAD', uri: withProtocolURI, }; - var badgeData = getBadgeData(websiteName, data); + var badgeData = getBadgeData(label, data); badgeData.colorscheme = undefined; request(options, function(err, res) { // We consider all HTTP status codes below 310 as success. diff --git a/try.html b/try.html index e9f5bf7c83ccce..5f5993a3f2d77e 100644 --- a/try.html +++ b/try.html @@ -393,8 +393,8 @@

Downloads

https://img.shields.io/chrome-web-store/d/nimelepbpejjlbmoobocpfnjhihnpked.svg
Website: https://img.shields.io/website-up-down-green-red/http/shields.io.svghttps://img.shields.io/website-up-down-green-red-my--website/http/shields.io.svg
CocoaPods:
+
Dashes -- @@ -1215,6 +1221,10 @@

Like This?

_ Underscore
Slashes // + → + / Slash
+
_ or Space     Space