sbd-npm 1.2.68 → 1.2.70
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.
- package/constant.js +1 -0
- package/package.json +1 -1
- package/util.js +10 -2
package/constant.js
CHANGED
@@ -142,6 +142,7 @@ const MenuList = [
|
|
142
142
|
{'key': 'concept_penny', 'name': '梁斌penny', 'url': '/8c1660155f89650a471edf54414cac49'},
|
143
143
|
{'key': 'concept_wen', 'name': '崇文不尚武', 'url': '/b6fd64a2c54250b8ac039123e74e9b7e'},
|
144
144
|
{'key': 'concept_dao', 'name': '成长股事(大道)', 'url': '/7b7ea877f6793752e2b981d82da81e1b'},
|
145
|
+
{'key': 'concept_patience', 'name': '耐力投资', 'url': '/d3e193cf9cdba853133c046ca3406867'},
|
145
146
|
{'key': 'concept_bellwether', 'name': '龙头股', 'url': '/2995afdea420471e00c536182e711bef'},
|
146
147
|
{'key': 'concept_market_situation', 'name': '市值风云', 'url': '/02fdaf4d66cdecb092bcd65f569aa493'},
|
147
148
|
{'key': 'concept_down_top', 'name': '15-21年的超跌股', 'url': '/ae3bbf97a358392cfaa0ceb35cb3fb57'},
|
package/package.json
CHANGED
package/util.js
CHANGED
@@ -1767,8 +1767,16 @@ const Util = {
|
|
1767
1767
|
* @returns {boolean}
|
1768
1768
|
*/
|
1769
1769
|
is_alpha: function (str) {
|
1770
|
-
|
1771
|
-
|
1770
|
+
return /^[A-Za-z]*$/.test(str);
|
1771
|
+
},
|
1772
|
+
|
1773
|
+
/**
|
1774
|
+
* 是否都是数字
|
1775
|
+
* @param str
|
1776
|
+
* @returns {boolean}
|
1777
|
+
*/
|
1778
|
+
is_digit: function (str) {
|
1779
|
+
return /^\d+$/.test(str);
|
1772
1780
|
},
|
1773
1781
|
|
1774
1782
|
/**
|