sbd-npm 1.4.31 → 1.4.33

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.31",
3
+ "version": "1.4.33",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
package/status.js CHANGED
@@ -430,7 +430,8 @@ $(function () {
430
430
  $("#task_div").html(ht_html.join(""));
431
431
  $("#task_add").click(function() {
432
432
  let task_content = $("#task_content").val();
433
- if (task_content) {
433
+ task_content = task_content.replace(/[^\w\u4e00-\u9fff]/g, ''); // 去掉除字母、数字、下划线(_)、汉字外的其他字符
434
+ if (task_content && task_content.length > 0) {
434
435
  $("#task_content").prop('disabled', true);
435
436
  $("#task_add").prop('disabled', true);
436
437
  Util.show_loading();