This project is archived and is in readonly mode.

#2850 ✓invalid
Akira Matsuda

Simplify regex for filtering non-ASCII chars in JSON escape

Reported by Akira Matsuda | June 29th, 2009 @ 09:38 AM | in 2.x

A regex in JSON escape seems to be too much complex. I even can't see whether it works as expected.

Attached a patch to simply filter out the non-ASCII chars.

Please ignore this patch if I misunderstood the spec, but it seems that the tests passes anyway.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages