botbuilder
Advanced tools
Comparing version 0.6.4 to 0.6.5
@@ -196,4 +196,4 @@ var utils = require('../utils'); | ||
EntityRecognizer.dateExp = /^\d{4}-\d{2}-\d{2}/i; | ||
EntityRecognizer.yesExp = /^(1|y|yes|yep|sure|ok|true)\z/i; | ||
EntityRecognizer.noExp = /^(0|n|no|nope|not|false)\z/i; | ||
EntityRecognizer.yesExp = /^(1|y|yes|yep|sure|ok|true)/i; | ||
EntityRecognizer.noExp = /^(0|n|no|nope|not|false)/i; | ||
EntityRecognizer.numberExp = /[+-]?(?:\d+\.?\d*|\d*\.?\d+)/; | ||
@@ -200,0 +200,0 @@ return EntityRecognizer; |
@@ -5,3 +5,3 @@ { | ||
"description": "Bot Builder is a dialog system for building rich bots on virtually any platform.", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -46,2 +46,6 @@ var assert = require('assert'); | ||
assert(results.response && results.response.entity === 'green'); | ||
builder.Prompts.confirm(session, 'Is green your choice?'); | ||
}, | ||
function (session, results) { | ||
assert(results.response && results.response === true); | ||
builder.Prompts.time(session, 'enter a time'); | ||
@@ -69,5 +73,8 @@ }, | ||
case 4: | ||
bot.processMessage({ text: 'yes' }); | ||
break; | ||
case 5: | ||
bot.processMessage({ text: 'in 5 minutes' }); | ||
break; | ||
case 5: | ||
case 6: | ||
assert(message.text == 'done'); | ||
@@ -74,0 +81,0 @@ done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171389
3922