diff --git a/src/botbuilder-ext/patches.ts b/src/botbuilder-ext/patches.ts index 511efef..2c021cf 100644 --- a/src/botbuilder-ext/patches.ts +++ b/src/botbuilder-ext/patches.ts @@ -68,8 +68,8 @@ function patchPromptsChoice() { * w/o breaking backwards compatibility. */ function addLocalizedEntityRecognizerYesNoExp() { - ((BotBuilder.EntityRecognizer)).yesExp = /^(1|y|yes|yep|sure|ok|true|s|si|sí|sip|vale)/i; - ((BotBuilder.EntityRecognizer)).noExp = /^(2|n|no|nope|not|false|nop)/i; + ((BotBuilder.EntityRecognizer)).yesExp = /^(1|y|yes|yep|sure|of course|ok|true|s|si|sí|sip|vale)(\W|$)/i; + ((BotBuilder.EntityRecognizer)).noExp = /^(2|n|no|nope|not|false|nop)(\W|$)/i; } // Apply all the patches when loading this module