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.
- package/package.json +1 -1
- package/status.js +2 -1
package/package.json
CHANGED
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
|
-
|
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();
|