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.
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.63",
3
+ "version": "1.4.64",
4
4
  "description": "Stock Big Data",
5
5
  "author": "DHQ <dhq314@gmail.com>",
6
6
  "license": "ISC",
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`(.+?)`\sDONE$/);
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;