sbd-npm 1.4.54 → 1.4.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/status.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.54",
3
+ "version": "1.4.55",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -157,7 +157,8 @@ $(function () {
157
157
  if (item["is_block"] === 1) {
158
158
  html.push("<td>", Util.seconds_to_format(item["time"]), "</td>");
159
159
  } else {
160
- html.push("<td><a href='#' class='block_ip' data-val='", item["ip"], "'>", Util.seconds_to_format(item["time"]), "</a></td>");
160
+ let match_ip_data = Util.regexp_match_ip(item["ip"]);
161
+ html.push("<td><a href='#' class='block_ip' data-val='", ((match_ip_data && match_ip_data[0]) ? match_ip_data[0] : item["ip"]), "'>", Util.seconds_to_format(item["time"]), "</a></td>");
161
162
  }
162
163
  html.push("</tr>");
163
164
  });