@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.
@@ -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}"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "2.0.118",
3
+ "version": "2.0.120",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",