utiller 1.0.352 → 1.0.354

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.
@@ -595,6 +595,17 @@ var Utiller = /*#__PURE__*/function () {
595
595
  return match ? _lodash["default"].merge({}, item, match) : item;
596
596
  });
597
597
  });
598
+ /**
599
+ _.replace(dateStr, /\//g, '')
600
+ 把 2025/08/18 裡的 / 全部移除 → 20250818
601
+ _.padStart('1', 6, '0')
602
+ 把 1 補滿到 6 位 → 000001
603
+ 字串相加後就是 20250818000001
604
+ console.log(getSignOfFormatDate('2025/08/18(一) 12:00 - 14:00')); // 20250818000001
605
+ */
606
+ (0, _defineProperty2["default"])(this, "getSignOfFormatDate", function (dateStr) {
607
+ return _lodash["default"].replace(_lodash["default"].trim(dateStr.split("(")[0]), /\//g, "") + _lodash["default"].padStart("1", 6, "0");
608
+ });
598
609
  this.init();
599
610
  this.env = "dev";
600
611
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.352",
3
+ "version": "1.0.354",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.11",
14
- "utiller": "^1.0.351",
14
+ "utiller": "^1.0.353",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.12",
17
17
  "lodash": "^4.17.20",