Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Sep 3, 2014
1 parent 1290ade commit 0c94c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/emoji_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def self.codepoints(opts={})
# @return [String] the unified ID
#
# @example
# >> Exmoji.unified_to_char("1F47E")
# >> EmojiData.unified_to_char("1F47E")
# => "👾"
def self.char_to_unified(char)
char.codepoints.to_a.map { |i| i.to_s(16).rjust(4,'0')}.join('-').upcase
Expand Down Expand Up @@ -133,7 +133,7 @@ def self.from_unified(uid)
EMOJICHAR_UNIFIED_MAP[uid.upcase]
end

# precompile regex patternf or fast matches in `.scan`
# precompile regex pattern for fast matches in `.scan`
FBS_REGEXP = Regexp.new("(?:#{EmojiData.chars({include_variants: true}).join("|")})")
private_constant :FBS_REGEXP

Expand Down

0 comments on commit 0c94c6b

Please sign in to comment.