Bug with multiple "!!!"

Jason Garber
2008-06-16T21:35:23Z

This is in RedCloth 3.0.4, I take it?

On Jun 12, 2008, at 8:18 PM, Markus Boelter wrote:

> 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
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards