@bbn/bbn 2.0.118 → 2.0.120
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/dist/bbn.js.map +1 -1
- package/dist/dt/functions/parse.js +6 -0
- package/package.json +1 -1
|
@@ -483,6 +483,9 @@ export default function parse(input, format, cls = 'auto', force, locale) {
|
|
|
483
483
|
let pattern = '';
|
|
484
484
|
const applyFns = [];
|
|
485
485
|
let i = 0;
|
|
486
|
+
if (fmt === "YYYY-MM-DD HH:mm:ss") {
|
|
487
|
+
debugger;
|
|
488
|
+
}
|
|
486
489
|
while (i < fmt.length) {
|
|
487
490
|
// 1) Handle [literal] blocks first
|
|
488
491
|
if (fmt[i] === '[') {
|
|
@@ -535,6 +538,9 @@ export default function parse(input, format, cls = 'auto', force, locale) {
|
|
|
535
538
|
input = inputDate.format(fmt);
|
|
536
539
|
isValid = false;
|
|
537
540
|
match = fullRegex.exec(input);
|
|
541
|
+
if (!match) {
|
|
542
|
+
debugger;
|
|
543
|
+
}
|
|
538
544
|
}
|
|
539
545
|
else {
|
|
540
546
|
throw new Error(`Date string "${input}" does not match format "${fmt}"`);
|