sbd-npm 1.4.88 → 1.4.89
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 +16 -1
- package/package.json +1 -1
- package/status.js +16 -1
package/constant.js
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (C) 2015-present dhq <dhq314@gmail.com>
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
1
16
|
const MenuList = [
|
2
17
|
{
|
3
18
|
'name': '概要',
|
@@ -278,7 +293,7 @@ const IndexList = [
|
|
278
293
|
{'code': 'SH000300', 'name': '沪深300', 'is_industry': 1, 'is_key': 1},
|
279
294
|
{'code': 'SH000016', 'name': '上证50', 'is_industry': 0, 'is_key': 1},
|
280
295
|
{'code': 'SZ399850', 'name': '深证50', 'is_industry': 0, 'is_key': 0},
|
281
|
-
{'code': 'SZ399673', 'name': '创业板50', 'is_industry': 0, 'is_key':
|
296
|
+
{'code': 'SZ399673', 'name': '创业板50', 'is_industry': 0, 'is_key': 1},
|
282
297
|
{'code': 'SH000688', 'name': '科创50', 'is_industry': 0, 'is_key': 1},
|
283
298
|
{'code': 'BJ899050', 'name': '北证50', 'is_industry': 0, 'is_key': 0},
|
284
299
|
{'code': 'SH000698', 'name': '科创100', 'is_industry': 0, 'is_key': 0},
|
package/package.json
CHANGED
package/status.js
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (C) 2015-present dhq <dhq314@gmail.com>
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
1
16
|
$(function () {
|
2
17
|
|
3
18
|
let Status = {
|
@@ -596,7 +611,7 @@ $(function () {
|
|
596
611
|
$("#task_add").click(function() {
|
597
612
|
let task_content = $("#task_content").val();
|
598
613
|
task_content = task_content.replace(/ü/g, 'u').replace(/ö/g, 'o'); // München、Köln
|
599
|
-
task_content = task_content.replace(/[^\w\u4e00-\u9fff-]/g, ''); // 去掉除字母、数字、下划线(_)、汉字、横杠(-)
|
614
|
+
task_content = task_content.replace(/[^\w\u4e00-\u9fff-]/g, ''); // 去掉除字母、数字、下划线(_)、汉字、横杠(-)之外的其他字符(䒚 /[^\w\u3400-\u9fff\u{20000}-\u{2EBEF}]/gu)
|
600
615
|
if (Status.check_task_content(task_content)) {
|
601
616
|
$("#task_content").prop('disabled', true);
|
602
617
|
$("#task_add").prop('disabled', true);
|