Skip to content

Commit

Permalink
fix(security.gbapp): E-mail used with no spellchecker turned on.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 18, 2021
1 parent 8767d0b commit d2b0a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/security.gbapp/dialogs/ProfileDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d2b0a20

Please sign in to comment.