Bug with multiple "!!!"

Markus Boelter
2008-06-13T00:18:02Z

Hi!

I discovered a bug in the latest stable RedCloth release where
multiple "!!!" are not handled correctly. The bug seems related to
line 1118 in redcloth.rb.

Old version:
    next if prop == ''src'' and attrv !~ /^http/

New version:
    next if prop == ''src'' and attrv =~ %r{^(?!http)\w+:}

Even in the old version, the string "?!?!?" is not processed correctly
and gives only "??" as output. The new version crashed with an error.

Anyone an idea?

Cheers,
   Markus