sbd-npm 1.4.15 → 1.4.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/util.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/util.js CHANGED
@@ -3199,7 +3199,7 @@ const Util = {
3199
3199
  */
3200
3200
  pack_html_link: function (url, title) {
3201
3201
  if (url) {
3202
- if (!url.startsWith("http")) {
3202
+ if (!url.startsWith("http") && !url.startsWith("/")) {
3203
3203
  url = "http://" + url;
3204
3204
  }
3205
3205
  return "<a target='_blank' class='link_cls' rel='noopener noreferrer nofollow' href='" + url + "'>" + title + "</a>";