diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 9452c2670..5ed23b8f7 100644 --- a/lib/redcloth.rb +++ b/lib/redcloth.rb @@ -786,7 +786,7 @@ class RedCloth < String atts << " title=\"#{ title }\"" if title atts = shelve( atts ) if atts - external = (url =~ /^http:\/\//) ? ' class="external"' : '' + external = (url =~ /^https?:\/\//) ? ' class="external"' : '' "#{ pre }#{ text }#{ post }" end