BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Email in Japanese Language Not Parsed Correctly

Open chergott opened this issue 1 year ago • 0 comments

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、住所は静岡県、メールアドレスは[email protected]です。 [1]

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

the email is parsed as メールアドレスはemikok.it when it should be parsed as [email protected]

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

chergott avatar Jun 26 '24 21:06 chergott