Skip to content

Commit 0821a4a

Browse files
committed
test: Fix windows pattern matching
1 parent 8755286 commit 0821a4a

2 files changed

Lines changed: 2 additions & 369 deletions

File tree

package-lock.json

Lines changed: 1 addition & 368 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/project/test/utils/AjvCoverage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import reports from "istanbul-reports";
77
import libCoverage from "istanbul-lib-coverage";
88
import {createInstrumenter} from "istanbul-lib-instrument";
99

10-
const rSchemaName = new RegExp(/sourceURL=([^\s]*)/);
10+
const rSchemaName = new RegExp(/sourceURL="?([^"\s]*)"?/);
1111
const rRootDataUndefined = /\n(?:\s)*if \(rootData === undefined\) rootData = data;/g;
1212
const rEnsureErrorArray = /\n(?:\s)*if \(vErrors === null\) vErrors = \[err\];(?:\s)*else vErrors\.push\(err\);/g;
1313
const rInstancePathOrEmptyString = /instancePath: \(instancePath \|\| ''\)/g;

0 commit comments

Comments
 (0)