gemojifyjs 0.0.3 → 0.0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f7a2df156ef2dc1251db2521e5522ba2ea7447e
4
- data.tar.gz: 5351f00f7b25764e4928e25dd7532e25ca74ea12
3
+ metadata.gz: 3793e94c270052d706d936e6e87577f26819fb06
4
+ data.tar.gz: c70047904d291440ea5a3af80a4e73fee0f3555b
5
5
  SHA512:
6
- metadata.gz: f4a00e75d5f202555740934e1f83edc8e1cb1a5e1737d53973a3346d4edb8e71d6ba171352c4b322d0606a5b98b95ee7ca5b1ae3fc06f1632f5d17d9d85cefee
7
- data.tar.gz: 35c1eeb0fcef18172f179c62871192a99722fec2e0b2830afce4da83db4a79dc2cc2c4f7c50ec2810852db7ba23ab050c9018b73363134e95f9bddd8e8bca204
6
+ metadata.gz: dbd474d26af147d94f14dca10dfe80ee8a77a5b66a23f81eda0cd3c65303d900288a71f5e69220f02e353f319268c0f51d1a016a4b5969a40fc211e700cd3685
7
+ data.tar.gz: f21feb27cfa6c6a0b805ac9c068ebfacb10c8f586ea585333c26fe7c5e8da9b16557d095a58fe6a707d773e1dbab5c06522a05b360fc55a241f1790c86303b7e
@@ -26,9 +26,11 @@ class Emojify
26
26
 
27
27
  markup: (text) ->
28
28
  for match in text.match(@normal_tags) or []
29
- text = text.replace(match, "<span class='emojify #{match.substring(1, match.length-1).toLowerCase()}' title='#{match}'></span>")
29
+ markup = match.substring(1, match.length-1)
30
+ text = text.replace(match, "<span class='emojify #{markup.toLowerCase()}' title='#{markup}'></span>")
30
31
  for smiley in @smileys
31
- text = text.replace(smiley[0], "<span class='emojify #{smiley[1]}' title='#{match}'></span>")
32
+ for match in text.match(smiley[0]) or []
33
+ text = text.replace(match, "<span class='emojify #{smiley[1]}' title='#{match}'></span>")
32
34
  return text
33
35
 
34
36
  window.emojify = new Emojify
@@ -1,3 +1,3 @@
1
1
  module Gemojifyjs
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemojifyjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Breyer-Menke
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.0.3
88
+ rubygems_version: 2.0.5
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: Gem for emojify.js