sbd-npm 1.4.63 → 1.4.64
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
@@ -544,6 +544,7 @@ $(function () {
|
|
544
544
|
$("#task_div").html(ht_html.join(""));
|
545
545
|
$("#task_add").click(function() {
|
546
546
|
let task_content = $("#task_content").val();
|
547
|
+
task_content = task_content.replace(/ü/g, 'u').replace(/ö/g, 'o'); // München、Köln
|
547
548
|
task_content = task_content.replace(/[^\w\u4e00-\u9fff-]/g, ''); // 去掉除字母、数字、下划线(_)、汉字、横杠(-)外的其他字符(䒚 /[^\w\u3400-\u9fff\u{20000}-\u{2EBEF}]/gu)
|
548
549
|
if (Status.check_task_content(task_content)) {
|
549
550
|
$("#task_content").prop('disabled', true);
|
@@ -602,7 +603,7 @@ $(function () {
|
|
602
603
|
if (task_content && task_content.length > 0) {
|
603
604
|
let task_tips = $("#task_tips").text().trim();
|
604
605
|
if (task_tips.length > 0) {
|
605
|
-
let tips_match = task_tips.match(/^任务\s
|
606
|
+
let tips_match = task_tips.match(/^任务\s*`(.+?)`\s*DONE$/);
|
606
607
|
if (tips_match && tips_match[1] === task_content) {
|
607
608
|
Util.show_tips("任务 `" + tips_match[1] + "` 已经执行过", 3456, "alert-danger");
|
608
609
|
return false;
|