parse-reminder
Advanced tools
Comparing version 1.1.0 to 1.2.0
const chrono = require('chrono-node') | ||
const matcher = /^remind (me)(?: to )?(.*)$/ | ||
const matcher = /^remind @?([^\s]+)(?: to )?(.*)$/ | ||
@@ -5,0 +5,0 @@ const parser = new chrono.Chrono() |
{ | ||
"name": "parse-reminder", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "parse natural language reminders into who, what, and when", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,2 +84,14 @@ process.env.TZ = 'UTC' | ||
who: 'me', when: new Date(2017, 6, 6, 12, 0, 0, 0), what: 'buy the new iPhone' | ||
}, | ||
'remind someone to have coffee tomorrow at noon': { | ||
who: 'someone', when: new Date(2017, 6, 6, 12, 0, 0, 0), what: 'have coffee' | ||
}, | ||
'remind @meaku to have coffee tomorrow at noon': { | ||
who: 'meaku', when: new Date(2017, 6, 6, 12, 0, 0, 0), what: 'have coffee' | ||
}, | ||
'remind @probot/everyone to have coffee tomorrow at noon': { | ||
who: 'probot/everyone', when: new Date(2017, 6, 6, 12, 0, 0, 0), what: 'have coffee' | ||
} | ||
@@ -86,0 +98,0 @@ } |
7142
124
7