Ticket #44 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

code section starting with "123 eats "12

Reported by: stepheneb Owned by: why
Priority: major Milestone:
Component: ext Version: SUPER
Keywords: code Cc: stepheneb

Description

This:

Regex-based string substitution with Ruby's gsub!: @"123<789".gsub!(/</, "") => "123789"@

Should produce:

<p>Regex-based string substitution with Ruby&#8217;s gsub!: <code>"123&lt;789".gsub!(/&lt;/, "") =&gt; "123789"</code></p>

But instead produces:

<p>Regex-based string substitution with Ruby&#8217;s gsub!: <code>3&lt;789".gsub!(/&lt;/, "") =&gt; "123789"</code></p>

The three characters: "12 after the @ character in the code section are eaten.

I've attached a patch with a test for this and for another problem with code in the ticket following this one.

Change History

Changed 8 months ago by jgarber

  • status changed from new to closed
  • resolution set to fixed

Fixed in [285].

Note: See TracTickets for help on using tickets.