sbd-npm 1.5.6 → 1.5.7

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/util.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/util.js CHANGED
@@ -459,7 +459,7 @@ const Util = {
459
459
  if (location_name === "") {
460
460
  location_name = location.length > 20 ? location.substring(0, 20) : location;
461
461
  }
462
- if (Util.is_has_chinese(location) && !/美国|加拿大|新加坡|日本|澳大利亚/.test(location)) {
462
+ if (Util.is_has_chinese(location) && !/美国|德国|日本|印度|英国|法国|意大利|加拿大|巴西|俄罗斯|墨西哥|澳洲|西班牙|韩国|印尼|土耳其|沙特|荷兰|瑞士|波兰|比利时|阿根廷|瑞典|爱尔兰|新加坡|以色列|阿联酋|泰国|奥地利|挪威|越南|菲律宾|孟加拉|伊朗|丹麦|马来西亚|哥伦比亚|南非|埃及|罗马尼亚|巴基斯坦|捷克|智利|葡萄牙|芬兰|秘鲁|哈萨克|伊拉克|阿尔及利亚|新西兰|希腊|匈牙利|卡塔尔|乌克兰|尼日利亚|科威特|摩洛哥|斯洛伐克|波多黎各|肯尼亚|厄瓜多|多米尼加|乌兹别克斯坦|瓜地马拉|保加利亚|委内瑞拉|古巴|阿曼|斯里兰卡|哥斯达黎加|克罗地亚|卢森堡|安道尔|塞尔维亚|科特迪瓦|巴拿马|立陶宛|加纳|乌拉圭|安哥拉|坦桑尼亚|阿塞拜疆|缅甸|斯洛文尼亚|刚果|土库曼斯坦|乌干达|突尼斯|约旦|喀麦隆|玻利维亚|苏丹|巴林|利比亞|柬埔寨|拉脱维亚|巴拉圭|津巴布韦|尼泊尔|爱沙尼亚|洪都拉斯|塞浦路斯|萨尔瓦多|冰岛|巴布亚新几内亚|塞内加尔|波黑|赞比亚|特多|黎巴嫩|叙利亚|也门|马其顿|老挝|毛里求斯|塔吉克|赤道几内亚|中非/.test(location)) {
463
463
  //return "<a target='_blank' class='link_cls map_link' rel='noopener noreferrer nofollow' href='https://map.baidu.com/m?fr=ps01000&word=" + location + "'>" + location_name + "</a>";
464
464
  return "<a target='_blank' class='link_cls map_link' rel='noopener noreferrer nofollow' href='https://www.amap.com/search?query=" + location + "'>" + location_name + "</a>";
465
465
  }
@@ -3367,6 +3367,7 @@ const Util = {
3367
3367
  */
3368
3368
  pack_html_link: function (url, title) {
3369
3369
  if (url) {
3370
+ title = title ? title : "null";
3370
3371
  if (url === "#") {
3371
3372
  return "<a class='link_cls' href='#'>" + title + "</a>";
3372
3373
  }