bkeepers / parse-reminder

a node module to parse natural language reminders into who, what, and when
ISC License
22 stars 7 forks source link

Uncaught ReferenceError: matcher is not defined #6

Closed Nantris closed 6 years ago

Nantris commented 6 years ago

I'm trying the examples given on the main page of the repo, but I get this error each time:

Uncaught ReferenceError: matcher is not defined

Any thoughts? Thanks for this very cool package.

bkeepers commented 6 years ago

@Slapbox which example is returning that error for you? Let me know if the exact phrase and I can dig in more. I was just able to test all of them fine from a node console:

> parseReminder('remind me to call the doctor tomorrow')
{ who: 'me',
  what: 'call the doctor',
  when: 2018-07-14T14:00:00.000Z }
> parseReminder('remind me to send invites at 3pm tomorrow')
{ who: 'me',
  what: 'send invites',
  when: 2018-07-14T20:00:00.000Z }
> parseReminder('remind me to wish Jamie happy birthday on 8/28')
{ who: 'me',
  what: 'wish Jamie happy birthday',
  when: 2018-08-28T14:00:00.000Z }
> parseReminder('remind me in 10 minutes to change the laundry')
{ who: 'me',
  what: 'change the laundry',
  when: 2018-07-13T17:45:08.000Z }
> parseReminder('remind me that the oil needs changed on Oct 4')
{ who: 'me',
  what: 'the oil needs changed',
  when: 2018-10-04T14:00:00.000Z }
> parseReminder('remind me next Friday to water the plants')
{ who: 'me',
  what: 'water the plants',
  when: 2018-07-20T14:00:00.000Z }