jeanny 0.89 → 0.91
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.
- data/lib/jeanny/engine.rb +9 -2
- metadata +2 -2
data/lib/jeanny/engine.rb
CHANGED
@@ -221,8 +221,15 @@ module Jeanny
|
|
221
221
|
|
222
222
|
value_after = value.dup
|
223
223
|
classes.each do |full_class, short_class|
|
224
|
-
while (pos = value_after =~ /#{full_class}(?=[^a-z0-9\-_]|$)/)
|
225
|
-
value_after[pos, full_class.length] = short_class
|
224
|
+
#while (pos = value_after =~ /#{full_class}(?=[^a-z0-9\-_]|$)/)
|
225
|
+
#value_after[pos, full_class.length] = short_class
|
226
|
+
#end
|
227
|
+
while (pos = value_after =~ /([^#]|^)#{full_class}(?=[^a-z0-9\-_]|$)/)
|
228
|
+
if $1.nil? or $1.empty?
|
229
|
+
value_after[pos, full_class.length] = short_class
|
230
|
+
else
|
231
|
+
value_after[pos + 1, full_class.length] = short_class
|
232
|
+
end
|
226
233
|
end
|
227
234
|
end
|
228
235
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeanny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.91"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gfranco
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-22 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|