From 7cb4af6453a3c6a5e9bfc6a63dd544444d2c7f70 Mon Sep 17 00:00:00 2001 From: chee Date: Fri, 5 May 2017 03:02:20 +0100 Subject: [PATCH] 0.1.0 --- code/parse.js | 4 +--- package.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/parse.js b/code/parse.js index 39f9f3f..59177ef 100644 --- a/code/parse.js +++ b/code/parse.js @@ -1,4 +1,3 @@ -// states.js const go = 'gogogo' const good = 'good' const equals = 'equals' @@ -22,12 +21,11 @@ const escapes = { } const escape = string => - string.replace(/\\([\"])/g, (_, character) => escapes[character]) + string.replace(/\\([\\"])/g, (_, character) => escapes[character]) // TODO add support for binary data const tokens = /^\s*(?:([,;=(){}])|"((?:\\"|[^"])*)")/ -// string.js const stringAction = { [go] () { state = good diff --git a/package.json b/package.json index 903d1ee..0a10045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nextstep-plist", - "version": "0.0.0", + "version": "0.1.0", "description": "NeXTSTEP plist parser", "main": "index.js", "repository": "git@gitlab.com:chee/nextstep-plist",