mack_ruby_core_extensions 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/extensions/string.rb +1 -1
- metadata +1 -1
data/lib/extensions/string.rb
CHANGED
@@ -188,7 +188,7 @@ class String
|
|
188
188
|
def breakify(every = 30)
|
189
189
|
every = 1 if every < 1
|
190
190
|
text = self
|
191
|
-
textile_regex =
|
191
|
+
textile_regex = /([^\"]+\"):([^:]*:[\/\/]{0,1}[^ ]*)/
|
192
192
|
long_regex = /\S{#{every},}/
|
193
193
|
brokentxt = text.gsub(long_regex) do |longword|
|
194
194
|
if longword =~ textile_regex #if the longword is a textile link...ignore and recheck for the link text only
|