From ed92d2354cf31034c4ec42518e5ecabe82634a3b Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Wed, 9 Aug 2017 11:10:40 +0800 Subject: [PATCH] Fix build --- package.json | 2 +- scripts/parse-reftest.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e7898e0..4aff998 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "webpack": "3.4.1" }, "scripts": { - "build": "rimraf dist/ && npm run build:npm && npm run build:browser", + "build": "rimraf dist/ && node scripts/create-reftest-list && npm run build:npm && npm run build:browser", "build:npm": "babel src/ -d dist/npm/", "build:browser": "webpack", "format": "prettier --single-quote --no-bracket-spacing --tab-width 4 --print-width 100 --write \"{src,tests,scripts}/**/*.js\"", diff --git a/scripts/parse-reftest.js b/scripts/parse-reftest.js index e1a3d3f..9f0a503 100644 --- a/scripts/parse-reftest.js +++ b/scripts/parse-reftest.js @@ -1,5 +1,5 @@ -const ACTION = /^\s*(\w+ ?\w*):\s+(.+)$/; -const TEXT = /^\s*\[(-?\d+), (-?\d+)\]:\s+(.+)$/; +const ACTION = /^\s*(\w+ ?\w*):\s+(.+)/; +const TEXT = /^\s*\[(-?\d+), (-?\d+)\]:\s+(.+)/; const WINDOW_SIZE = /^\[(-?\d+), (-?\d+)\]$/; const RECTANGLE = /^\[(-?\d+), (-?\d+), (-?\d+), (-?\d+)\]\s+(.+)$/; const REPEAT = /^Image\s+\("(.+)"\)\s+\[(-?\d+), (-?\d+)\]\s+Size\s+\((-?\d+), (-?\d+)\)\s+(.+)$/;