kazu2012 / persevere-framework

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

jsonQuery parsing fails when query contains 2+ object references #271

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Branch: 1.0, r706

Example: 
js> jsonQuery("[?foo=/Foo/1 & bar=/Bar/1]")
SyntaxError: missing ; before statement
        at org/persvr/server.js:403

The problem appears to be on org/persvr/server.js:311. The regex only replaces 
the first occurance 
of an absolute id. Making the regex replacement global appears to fix the 
problem. Patch is 
attached.

Original issue reported on code.google.com by rheimb...@gmail.com on 17 May 2010 at 11:57

Attachments:

GoogleCodeExporter commented 8 years ago

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