Thellmann / callimachus

Automatically exported from code.google.com/p/callimachus
Other
0 stars 0 forks source link

Invalid CURIE expressions should be ignored #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Expressions that contain an invalid CURIE (containing a single or double quote) 
should be ignored and passed though. The attribute below shows an example of an 
expression that appears to be a CURIE expression, but should be passed thought 
to allow the browser to interpret it.

 onfocus="$(this).datepicker({dateFormat:'yy-mm-dd'}).datepicker('show')"

I have attached a test suite of other expressions that their expected results.

Original issue reported on code.google.com by *...@talis.com on 27 Jun 2011 at 1:14

Attachments:

GoogleCodeExporter commented 9 years ago
The CURIE regex \{([^ \}\?\"\':]*):([^ \"\']+)\} as defined in RDFaReader now 
excludes quotes in the reference. Escape handling for literal expressions have 
been fixed and the attached test green-lines.

Original comment by steven.a...@gmail.com on 27 Jun 2011 at 5:52

GoogleCodeExporter commented 9 years ago
JSON expressions such as {'json':'string'} should not be confused with a string 
expression. Use a regular expression like \{'(:?[^'\\]|\\.)*'\} to exclude 
non-continuous strings

Original comment by *...@talis.com on 27 Jun 2011 at 6:07

Attachments:

GoogleCodeExporter commented 9 years ago
Use the whitespace character group '\s' instead of a normal space.

Original comment by *...@talis.com on 28 Jun 2011 at 12:48

Attachments:

GoogleCodeExporter commented 9 years ago
Escape common special chars in string literal expressions
http://code.google.com/p/callimachus/source/detail?r=1169

Original comment by *...@talis.com on 29 Jun 2011 at 3:02