mack_ruby_core_extensions 0.1.3 → 0.1.4
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/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
|