pebble watch - Unterminated character class using square brackets -


i'm pulling in web data source , need clean up. in pebble js i've used following works on standard web page:

    var arr = json.parse('[' + str.replace(/\]\[/gi, '],[') + ']');     console.log(arr); 

this returns error 'unterminated character class'. i've tried various methods of escaping characters no success.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -