Have you read the Contributing Guidelines on issues?
Prerequisites
Description
Due to the Regex used here, digits are recognized as Emojis. This is because for some reason /\p{Emoji}/u.test("1") === true.
Unfortunately, this causes the following behavior when the title of a page starts with a number (in this case 11).
Reproducible demo
https://stackblitz.com/edit/github-intrjsrr
Steps to reproduce
Add to frontmatter:
---
title: 11 Something
...
---
Look at DocCard generated for this page.
Expected behavior
Number should be recognized as Text and therefore not be used as the icon.
Actual behavior
The number is recognized as an emoji, making it the icon in the DocCard.
Your environment
No response
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
Due to the Regex used here, digits are recognized as Emojis. This is because for some reason
/\p{Emoji}/u.test("1") === true.Unfortunately, this causes the following behavior when the title of a page starts with a number (in this case 11).
Reproducible demo
https://stackblitz.com/edit/github-intrjsrr
Steps to reproduce
Add to frontmatter:
Look at
DocCardgenerated for this page.Expected behavior
Number should be recognized as Text and therefore not be used as the icon.
Actual behavior
The number is recognized as an emoji, making it the icon in the
DocCard.Your environment
No response
Self-service