Project

General

Profile

Patch #943 ยป wikihttps.diff

Marc Horowitz, 2008-03-28 06:02

View differences:

lib/redcloth.rb (working copy)
785 785
            atts << " title=\"#{ title }\"" if title
786 786
            atts = shelve( atts ) if atts
787 787
            
788
            external = (url =~ /^http:\/\//) ? ' class="external"' : ''
788
            external = (url =~ /^https?:\/\//) ? ' class="external"' : ''
789 789
            
790 790
            "#{ pre }<a#{ atts }#{ external }>#{ text }</a>#{ post }"
791 791
        end
    (1-1/1)