Skip to content

Commit

Permalink
Enable format assertions for optional/ecmascript-regex.json
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-tay committed Jul 1, 2024
1 parent 8771755 commit 1ca28f2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ private JsonValidator prepareValidator(
final SchemaSpec spec, final TestSuite suite, final Implementation implementation) {
try {
final boolean format =
Paths.get("format").equals(suite.filePath().getParent().getFileName());
Paths.get("format").equals(suite.filePath().getParent().getFileName())
|| Paths.get("ecmascript-regex.json")
.equals(suite.filePath().getFileName());
return implementation.prepare(
suite.schema(), spec, additionalSchemas, suite.optional() && format);
} catch (final Throwable t) {
Expand Down

0 comments on commit 1ca28f2

Please sign in to comment.