registration
This commit is contained in:
7
frontend/style/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
generated
vendored
7
frontend/style/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
generated
vendored
@@ -1,7 +1,4 @@
|
||||
"use strict";
|
||||
exports.buildMatchPatternFn = buildMatchPatternFn;
|
||||
|
||||
function buildMatchPatternFn(args) {
|
||||
export function buildMatchPatternFn(args) {
|
||||
return (string, options = {}) => {
|
||||
const matchResult = string.match(args.matchPattern);
|
||||
if (!matchResult) return null;
|
||||
@@ -13,7 +10,7 @@ function buildMatchPatternFn(args) {
|
||||
? args.valueCallback(parseResult[0])
|
||||
: parseResult[0];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
||||
// [TODO] I challenge you to fix the type
|
||||
value = options.valueCallback ? options.valueCallback(value) : value;
|
||||
|
||||
const rest = string.slice(matchedString.length);
|
||||
|
||||
Reference in New Issue
Block a user