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
Post a Comment