We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f9724c + 4b1bd48 commit 85de7d0Copy full SHA for 85de7d0
1 file changed
src/views/Chores/ChoreCard.jsx
@@ -78,7 +78,7 @@ const ChoreCard = ({
78
const getName = name => {
79
const split = Array.from(chore.name)
80
// if the first character is emoji then remove it from the name
81
- if (/\p{Emoji}/u.test(split[0])) {
+ if (isNaN(Number(split[0])) && /\p{Emoji}/u.test(split[0])) {
82
return split.slice(1).join('').trim()
83
}
84
return name
0 commit comments