Actions
Bug #10593
closedEmoji is been considered as comment
Description
Unicode is been considered as comment.
Unicode | Bytes |
---|---|
U+0023 U+20E3 | \x23\xE2\x83\xA3 |
class Hash
alias #️⃣ to_hash
end
when you require or load this file, will result in: syntax error, unexpected end-of-input
.
current workaround:
class Hash
alias :"#️⃣" to_hash
end
Background: https://github.com/sferik/active_emoji/pull/8
Thanks in advance <3.
Updated by naruse (Yui NARUSE) about 10 years ago
It is spec.
At first the character is not Emoji.
The Unicode sequence "U+0023 U+20E3" consists of two Unicode codepoint:
U+0023 (NUMBER SIGN, '#'), and U+2E03 (COMBINING ENCLOSING KEYCAP).
Even if your environment shows the character as Emoji, it is not always an emoji.
And as above sequence, the character is considered as a variant of '#'.
Updated by naruse (Yui NARUSE) about 10 years ago
- Status changed from Open to Rejected
Actions
Like0
Like0Like0