registration

This commit is contained in:
User
2025-02-02 16:08:03 +03:00
parent 7f6495eb4d
commit 78afbaed71
6334 changed files with 196774 additions and 165754 deletions

View File

@@ -0,0 +1,28 @@
"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;