summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/install.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/html/install.js b/html/install.js
index 82df661..ce97877 100644
--- a/html/install.js
+++ b/html/install.js
@@ -50,7 +50,7 @@
#FROM common/entities.js IMPORT item_id_string, version_string, get_files
#FROM common/misc.js IMPORT sha256_async AS compute_sha256
#FROM common/jsonschema.js IMPORT haketilo_validator, haketilo_schemas
-#FROM common/entities.js IMPORT haketilo_schema_name_regex
+#FROM common/entities.js IMPORT parse_schema_uri
#FROM html/repo_query_cacher_client.js IMPORT indirect_fetch
@@ -208,8 +208,8 @@ function InstallView(tab_id, on_view_show, on_view_hide) {
`${captype} ${item_id_string(id, ver)} was served using a nonconforming response format.`;
try {
- const match = haketilo_schema_name_regex.exec(json.$schema);
- var major_schema_version = match.groups.major;
+ const parsed = parse_schema_uri(json.$schema);
+ var major_schema_version = parsed.major;
if (!["1", "2"].includes(major_schema_version)) {
const msg = `${captype} ${item_id_string(id, ver)} was served using unsupported Hydrilla API version. You might need to update Haketilo.`;