1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
Oinktube/node_modules/date-fns/parse/_lib/Parser.cjs
2025-07-10 15:28:42 -03:00

28 lines
547 B
JavaScript

"use strict";
exports.Parser = void 0;
var _Setter = require("./Setter.cjs");
class Parser {
run(dateString, token, match, options) {
const result = this.parse(dateString, token, match, options);
if (!result) {
return null;
}
return {
setter: new _Setter.ValueSetter(
result.value,
this.validate,
this.set,
this.priority,
this.subPriority,
),
rest: result.rest,
};
}
validate(_utcDate, _value, _options) {
return true;
}
}
exports.Parser = Parser;