utiller 1.0.353 → 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
CHANGED
|
@@ -601,10 +601,10 @@ var Utiller = /*#__PURE__*/function () {
|
|
|
601
601
|
_.padStart('1', 6, '0')
|
|
602
602
|
把 1 補滿到 6 位 → 000001
|
|
603
603
|
字串相加後就是 20250818000001
|
|
604
|
-
console.log(getSignOfFormatDate('2025/08/18')); // 20250818000001
|
|
604
|
+
console.log(getSignOfFormatDate('2025/08/18(一) 12:00 - 14:00')); // 20250818000001
|
|
605
605
|
*/
|
|
606
606
|
(0, _defineProperty2["default"])(this, "getSignOfFormatDate", function (dateStr) {
|
|
607
|
-
return _lodash["default"].replace(dateStr, /\//g, "") + _lodash["default"].padStart("1", 6, "0");
|
|
607
|
+
return _lodash["default"].replace(_lodash["default"].trim(dateStr.split("(")[0]), /\//g, "") + _lodash["default"].padStart("1", 6, "0");
|
|
608
608
|
});
|
|
609
609
|
this.init();
|
|
610
610
|
this.env = "dev";
|
package/package.json
CHANGED