1 | import ExtractTimezoneAbbrRefiner from "./common/refiners/ExtractTimezoneAbbrRefiner.js";
|
2 | import ExtractTimezoneOffsetRefiner from "./common/refiners/ExtractTimezoneOffsetRefiner.js";
|
3 | import OverlapRemovalRefiner from "./common/refiners/OverlapRemovalRefiner.js";
|
4 | import ForwardDateRefiner from "./common/refiners/ForwardDateRefiner.js";
|
5 | import UnlikelyFormatFilter from "./common/refiners/UnlikelyFormatFilter.js";
|
6 | import ISOFormatParser from "./common/parsers/ISOFormatParser.js";
|
7 | import MergeWeekdayComponentRefiner from "./common/refiners/MergeWeekdayComponentRefiner.js";
|
8 | export function includeCommonConfiguration(configuration, strictMode = false) {
|
9 | configuration.parsers.unshift(new ISOFormatParser());
|
10 | configuration.refiners.unshift(new MergeWeekdayComponentRefiner());
|
11 | configuration.refiners.unshift(new ExtractTimezoneOffsetRefiner());
|
12 | configuration.refiners.unshift(new OverlapRemovalRefiner());
|
13 | configuration.refiners.push(new ExtractTimezoneAbbrRefiner());
|
14 | configuration.refiners.push(new OverlapRemovalRefiner());
|
15 | configuration.refiners.push(new ForwardDateRefiner());
|
16 | configuration.refiners.push(new UnlikelyFormatFilter(strictMode));
|
17 | return configuration;
|
18 | }
|
19 |
|
\ | No newline at end of file |