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.
- package/lib/utiller/index.js +11 -0
- package/package.json +1 -1
- package/template/sample.package.json +1 -1
package/lib/utiller/index.js
CHANGED
|
@@ -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