Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Bot Framework Skype channel regular expressions not working #1205

@gcfabri

Description

@gcfabri

Bot Info

  • SDK Platform: Node.js
  • SDK Version: Bot Builder 3.13.1 with Botkit 0.6.7
  • Active Channels: Skype, Messenger, Telegram and Web
  • Deployment Environment: Azure Bot Service and Azure App Service

Issue Description

I built a bot using Bot Framework (node.js) with four connected channels (Messenger, Telegram, Skype and Web). At any moment the bot validates an inputted email address using a regular expression like this below:

/^[-a-z0-9~!$%^&*_=+}{\'?]+(\.[-a-z0-9~!$%^&*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i

It is working properly on all channels, except the Skype. E.g: gcfabri@gmail.com match with this regex but on Skype channel it doesn't happens.

Code Example

emailRegex.test(gcfabri@gmail.com);

Expected Behavior

The email address gcfabri@gmail.com should match with the regex above.

Actual Results

Skype channel just ignore the step with the regex validation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions