Skip to content

Commit

Permalink
Fix outdated readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
wanasit committed Jul 18, 2020
1 parent 4b4a9a9 commit a1757f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ User can create a new parser for supporting new date formats or languages
by providing RegExp pattern `pattern()` and extracting result or components from the RegExp match `extract()`.

```javascript
const custom = chrono.casual.copy();
const custom = chrono.casual.clone();
custom.parsers.push({
pattern: () => { return /\bChristmas\b/i },
extract: (context, match) => {
Expand All @@ -215,7 +215,7 @@ interface Refiner {
Refiner is a higher level module for improving or manipulating the results. User can add a new type of refiner to customize Chrono's results or to add some custom logic to Chrono.

```javascript
const custom = chrono.casual.copy();
const custom = chrono.casual.clone();
custom.refiners.push({
refine: (context, results) => {
// If there is no AM/PM (meridiem) specified,
Expand Down

0 comments on commit a1757f3

Please sign in to comment.