Ticket #44 (closed defect: fixed)
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’s gsub!: <code>"123<789".gsub!(/</, "") => "123789"</code></p>
But instead produces:
<p>Regex-based string substitution with Ruby’s gsub!: <code>3<789".gsub!(/</, "") => "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
Note: See
TracTickets for help on using
tickets.