source/Emoji/gemoji-parser/lib/gemoji-parser.rb
# Defines lookaround patterns for matching before and after emoticons.
Defines lookaround patterns for matching before and after emoticons.
Defines lookaround patterns for matching before and after emoticons .
def emoticon_lookaround(opts={})
    return @emoticon_lookaround if defined?(@emoticon_lookaround) && !opts[:reset]
    @emoticon_lookaround = {
      behind: '^|\\s',
      ahead: '$|\\s'
    }
  end
def emoticon_lookaround ( opts = { } ) return @emoticon_lookaround if defined? ( @emoticon_lookaround ) && ! opts [ :reset ] @emoticon_lookaround = { behind : '^|\\s' , ahead : '$|\\s' } end
Defines lookaround patterns for matching before and after emoticons.
Defines lookaround patterns for matching before and after emoticons .
opts