Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVdb committed Feb 3, 2021
1 parent 49dbf2f commit 5880738
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
39 changes: 19 additions & 20 deletions src/locales/nl/parsers/NLCasualDateTimeParser.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
import { ParsingContext } from "../../../chrono";
import { ParsingComponents, ParsingResult } from "../../../results";
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
import * as references from "../../../common/casualReferences";
import {Meridiem} from "../../../index";
import {assignSimilarDate, assignTheNextDay} from "../../../utils/dayjs";
import { Meridiem } from "../../../index";
import { assignSimilarDate, assignTheNextDay } from "../../../utils/dayjs";
import dayjs from "dayjs";

/*
* Find combined words
* - morgenochtend
* - morgenmiddag
* - morgennamiddag
* - morgenavond
* - morgennacht
* - vanochtend
* - vanmiddag
* - vannamiddag
* - vanavond
* - vannacht
* - gisterenochtend
* - gisterenmiddag
* - gisterennamiddag
* - gisterenavond
* - gisterennacht
* */
* Find combined words
* - morgenochtend
* - morgenmiddag
* - morgennamiddag
* - morgenavond
* - morgennacht
* - vanochtend
* - vanmiddag
* - vannamiddag
* - vanavond
* - vannacht
* - gisterenochtend
* - gisterenmiddag
* - gisterennamiddag
* - gisterenavond
* - gisterennacht
* */

const DATE_GROUP = 1;
const TIME_OF_DAY_GROUP = 2;
Expand Down
2 changes: 1 addition & 1 deletion test/nl/nl_casual.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ test("Test - Casual combined datetime expressions", () => {

expect(result.start).toBeDate(new Date(2012, 8 - 1, 11, 20));
});
})
});

test("Test - Casual date range", () => {
testSingleCase(chrono.nl, "Het evenement is vandaag - volgende vrijdag", new Date(2012, 7, 4, 12), (result) => {
Expand Down

0 comments on commit 5880738

Please sign in to comment.