Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11524 (new defect)

Opened 1 month ago

Last modified 1 month ago

[PATCH] latest regexp for String#isJSON

Reported by: Rufnex Assigned to: sam
Priority: normal Milestone: 2.x
Component: Prototype Version: edge
Severity: normal Keywords: 1.6.1
Cc:

Description

isJSON returns true, if a test string starts with one or more 'a'. e.g.

'a : 42'.isJSON();    // -> true
'aaaa : 42'.isJSON(); // -> true
'a'.isJSON();         // -> true
'aaaa'.isJSON();      // -> true

Attachments

0012-patch-for-isJSON.patch (1.3 kB) - added by kangax on 04/13/08 06:03:56.

Change History

04/03/08 21:07:16 changed by Tobie

  • keywords changed from 1.6.2 to 1.6.1.

An update to Crockford's latest regexp filter is planned for 1.6.1.

04/13/08 06:03:56 changed by kangax

  • attachment 0012-patch-for-isJSON.patch added.

04/13/08 06:04:56 changed by kangax

  • summary changed from isJSON doesn't work i a String starts with one or more 'a' to [PATCH] latest regexp for String#isJSON.