kazu2012 / persevere-framework

Automatically exported from code.google.com/p/persevere-framework
0 stars 0 forks source link

jsonQuery incorrectly parses properties that have a number inside the property name #272

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Example:
js>jsonQuery("[?b8yte]")
function (...) {
  ...
  return $obj.b8$obj.yte;
  ...
}

The regex at WEB-INF/src/org/persvr/server.js:342 only matches property names 
that contain 
[a-zA-Z_$] characters. However this restriction is only true for the first 
character of property 
name literals. 

Patch attached.

Original issue reported on code.google.com by rheimb...@gmail.com on 18 May 2010 at 12:05

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by kris...@gmail.com on 25 May 2010 at 3:50