microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.56k stars 1.51k forks source link

Email in Japanese Language Not Parsed Correctly #5226

Open chergott opened 6 days ago

chergott commented 6 days ago

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Edge (latest), Browser: Chrome (latest), Browser: Firefox (latest), Browser: Safari (latest)

Which area does this issue affect?

Chat history

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

https://copilotstudio.test.microsoft.com/

Please describe the bug

When Copilot's primary language is set to Japanese and user receives a message displaying an email address, the email is not correctly parsed

For example... if the markdown text to be parsed is the following...

小堺えみ子の部署はITマネジメント部、会社名はMicrosoft、住所は静岡県、メールアドレスはemikok.it@pqmtprodc1.onmicrosoft.comです。 [1]

[1]: cite:1 "Citation-1"

the email is parsed as メールアドレスはemikok.it when it should be parsed as emikok.it@pqmtprodc1.onmicrosoft.com

I don't believe this is an issue of WebChat but rather an issue with the dependency used to parse markdown text, Markdown-It

The issue is reproducible by copying the first code block into https://markdown-it.github.io/ or https://markdown-it.github.io/linkify-it/

More-so, I believe this is a language parsing issue with Markdown-It's Linkify It which doesn't parse the email correctly

For full language support, I suggest creating a custom "linkify" function or creating a bug for Linkify It

Do you see any errors in console log?

No response

How to reproduce the issue?

Repro steps are listed in https://msazure.visualstudio.com/CCI/_workitems/edit/28531909

What do you expect?

Email address to be parsed as an email

What actually happened?

Part of the email was parsed as a link

Do you have any screenshots or recordings to repro the issue?

image

Adaptive Card JSON

No response

Additional context

No response