Comparing version 0.4.1 to 0.4.2
@@ -16,2 +16,7 @@ # Changelog | ||
# 0.4.2 | ||
* **Bug fix** | ||
* The whitespace parser only accepts space, fix #10 (@danr, @gcanti) | ||
# 0.4.1 | ||
@@ -18,0 +23,0 @@ |
@@ -46,4 +46,5 @@ "use strict"; | ||
exports.digit = p.expected(p.sat(isDigit), 'a digit'); | ||
var spaceRe = /^\s$/; | ||
function isSpace(c) { | ||
return c === ' '; | ||
return spaceRe.test(c); | ||
} | ||
@@ -50,0 +51,0 @@ /** Matches a single whitespace character. */ |
{ | ||
"name": "parser-ts", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "String parser combinators for TypeScript", | ||
@@ -10,6 +10,9 @@ "files": ["lib"], | ||
"lint": "tslint src/**/*.ts test/**/*.ts", | ||
"typings-checker": "typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts", | ||
"typings-checker": | ||
"typings-checker --allow-expect-error --project typings-checker/tsconfig.json typings-checker/index.ts", | ||
"mocha": "mocha -r ts-node/register test/*.ts", | ||
"prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"", | ||
"fix-prettier": "prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test}/**/*.ts\"", | ||
"prettier": | ||
"prettier --no-semi --single-quote --print-width 120 --parser typescript --list-different \"{src,test}/**/*.ts\"", | ||
"fix-prettier": | ||
"prettier --no-semi --single-quote --print-width 120 --parser typescript --write \"{src,test}/**/*.ts\"", | ||
"test": "npm run lint && npm run prettier && npm run typings-checker && npm run mocha", | ||
@@ -16,0 +19,0 @@ "clean": "rm -rf lib/*", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43402
587