registration
This commit is contained in:
9
frontend/style/node_modules/date-fns/locale/_lib/buildMatchFn.js
generated
vendored
9
frontend/style/node_modules/date-fns/locale/_lib/buildMatchFn.js
generated
vendored
@@ -1,7 +1,4 @@
|
||||
"use strict";
|
||||
exports.buildMatchFn = buildMatchFn;
|
||||
|
||||
function buildMatchFn(args) {
|
||||
export function buildMatchFn(args) {
|
||||
return (string, options = {}) => {
|
||||
const width = options.width;
|
||||
|
||||
@@ -21,14 +18,14 @@ function buildMatchFn(args) {
|
||||
|
||||
const key = Array.isArray(parsePatterns)
|
||||
? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))
|
||||
: // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
||||
: // [TODO] -- I challenge you to fix the type
|
||||
findKey(parsePatterns, (pattern) => pattern.test(matchedString));
|
||||
|
||||
let value;
|
||||
|
||||
value = args.valueCallback ? args.valueCallback(key) : key;
|
||||
value = options.valueCallback
|
||||
? // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
||||
? // [TODO] -- I challenge you to fix the type
|
||||
options.valueCallback(value)
|
||||
: value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user