Bug with multiple "!"

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

This is in RedCloth 3.0.4, I take it?

Hi!

On Jun 16, 2008, at 2:35 PM, Jason G. wrote:

This is in RedCloth 3.0.4, I take it?

Yes, it is

Thanks,
Markus