aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn')
-rw-r--r--node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js b/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
deleted file mode 100644
index 8532087..0000000
--- a/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-export default function buildMatchPatternFn(args) {
- return function (string) {
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- var matchResult = string.match(args.matchPattern);
- if (!matchResult) return null;
- var matchedString = matchResult[0];
- var parseResult = string.match(args.parsePattern);
- if (!parseResult) return null;
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
- value = options.valueCallback ? options.valueCallback(value) : value;
- var rest = string.slice(matchedString.length);
- return {
- value: value,
- rest: rest
- };
- };
-} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage