fix(security.gbapp): E-mail used with no spellchecker turned on.

This commit is contained in:
Rodrigo Rodriguez 2021-05-18 12:02:44 -03:00
parent 8767d0b5f9
commit d2b0a2073b

View file

@ -194,7 +194,7 @@ export class ProfileDialog extends IGBDialog {
return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi);
};
const value = extractEntity(step.result);
const value = extractEntity(step.context.activity.originalText);
if (value === null) {
await step.context.sendActivity(Messages[locale].validation_enter_valid_email);