couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Bartell <snbart...@gmail.com>
Subject Re: storing regex in json
Date Fri, 18 Jan 2013 23:20:36 GMT

> 
> On Jan 18, 2013, at 2:57 PM, Mark Hahn <mark@hahnca.com> wrote:
> 
>> Have you tried \\ instead of \ ?
> 
> +1. When quoting text for JavaScript or JSON, you have to escape any backslashes in the
text.

I did.  I verified my javascript func worked.  Then I compressed it.  Then i went through
and replaced the \'s with \\'s.  When the func was eval'd it would throw.

I'm going to run through the whole thing again to triple check though.

> 
> —Jens


Mime
View raw message