@bbn/bbn 2.0.124 → 2.0.125
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 +1 -1
- package/dist/bbn.js.map +1 -1
- package/dist/dt/functions/parse.js +2 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import bbnDtDate from '../classes/date.js';
|
|
|
5
5
|
import bbnDtTime from '../classes/time.js';
|
|
6
6
|
import bbnDtYearMonth from '../classes/yearMonth.js';
|
|
7
7
|
import bbnDtMonthDay from '../classes/monthDay.js';
|
|
8
|
+
import log from '../../fn/browser/log.js';
|
|
8
9
|
const lc = function (str, localeCode) {
|
|
9
10
|
try {
|
|
10
11
|
return localeCode ? str.toLocaleLowerCase(localeCode) : str.toLowerCase();
|
|
@@ -526,6 +527,7 @@ export default function parse(input, format, cls = 'auto', force, locale) {
|
|
|
526
527
|
if (matchedToken) {
|
|
527
528
|
pattern += `(${matchedToken.regex})`;
|
|
528
529
|
if (matchedToken.apply) {
|
|
530
|
+
log(matchedToken);
|
|
529
531
|
applyFns.push(value => matchedToken.apply(value, ctx));
|
|
530
532
|
}
|
|
531
533
|
else {
|