possible bug in trunk base.rb? BREAK_RE.

Lucas Carlson cardmagic at gmail.com
Mon Jun 5 19:15:48 EDT 2006


Can you provide the tests that didn't work without the "/m"?

-Lucas
http://rufy.com/



On Jun 5, 2006, at 4:09 PM, Jeremy Burks wrote:

> Hello All, first post to the list.
>
> I just checked out trunk and it broke my tests.
>
> Turns out that the BREAK_RE regex found in base.rb is missing the "/m"
> mode modifier.
>
> I am still getting my head around the library so i may be missing
> something but was that done on purpose?
>
> Thanks.
> jeremy
>
>
> Index: base.rb
> ===================================================================
> --- base.rb	(revision 24)
> +++ base.rb	(working copy)
> @@ -181,7 +181,7 @@
>          @@?
>          (.*?)/x
>      BLOCKS_GROUP_RE = /\n{2,}(?! )/m
> -    BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/
> +    BLOCK_RE = /^(([a-z]+)(\d*))(#{A}#{C})\.(?::(\S+))? (.*)$/m
>      SETEXT_RE = /\A(.+?)\n([=-])[=-]* *$/m
>      ATX_RE = /\A(\#{1,6})  # $1 = string of #'s
>                [ ]*
> _______________________________________________
> Redcloth-upwards mailing list
> Redcloth-upwards at rubyforge.org
> http://rubyforge.org/mailman/listinfo/redcloth-upwards



More information about the Redcloth-upwards mailing list