Project

General

Profile

« Previous | Next » 

Revision 1f9ccef9

Added by koszko about 1 year ago

restore compatibility with IceCat 60

This commit also fixes the --driver option to configure script.

View differences:

common/jsonschema.js
57 57

  
58 58
#FROM common/jsonschema/scan.js IMPORT SchemaScanResult, scan
59 59

  
60
#FROM common/entities.js IMPORT haketilo_schema_name_regex
60
#FROM common/entities.js IMPORT parse_schema_uri
61 61

  
62 62
#EXPORT scan
63 63
#EXPORT SchemaScanResult
......
89 89
].reduce((ac, s) => Object.assign(ac, {[s.$id]: s}), {});
90 90

  
91 91
for (const [$id, schema] of [...Object.entries(haketilo_schemas)]) {
92
    const match = haketilo_schema_name_regex.exec($id);
93
    const schema_name =
94
	  `${match.groups.name_base}-${match.groups.major}.schema.json`;
92
    const parsed = parse_schema_uri($id);
93
    const schema_name = `${parsed.name_base}-${parsed.major}.schema.json`;
95 94
    haketilo_schemas[schema_name] = schema;
96 95
}
97 96

  

Also available in: Unified diff