microsoft / microsoft/BotFramework-WebChat
Email in Japanese Language Not Parsed Correctly
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
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?
Adaptive Card JSON
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Japanese example in the Markdown-It and Linkify It demos linked in the issue, then trace how Web Chat parses chat history. Confirm whether the dependency or Web Chat is responsible; done means the complete email address is parsed as an email rather than only the prefix.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100