diff --git a/lib/redcloth.rb b/lib/redcloth.rb index 9452c267076a710345101b347bb76383d6e0190c..5ed23b8f783cc36447e4ff4ffef57e98d0db216d 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 }<a#{ atts }#{ external }>#{ text }</a>#{ post }" end