Project

General

Profile

Actions

Bug #10593

closed

Emoji is been considered as comment

Added by JuanitoFatas (Juanito Fatas) almost 7 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 2.2.0preview1 (2014-09-17 trunk 47616) [x86_64-darwin13]
[ruby-core:66810]

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.

Actions

Also available in: Atom PDF