« get me outta code hell

upd8, etc: curated url validation, tidying modes, --format-urls - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-properties/urls.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-04-12 12:14:23 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-04-12 12:15:04 -0300
commit0d2481ed8abdb084f5c10984181c2a7355d5208a (patch)
treef039a8ef4def20bb8ac9202bdc85a94dfaec3dbb /src/data/composite/wiki-properties/urls.js
parent5fcd8ce38402c6623b57a5dc846c9786a24644f1 (diff)
upd8, etc: curated url validation, tidying modes, --format-urls
Diffstat (limited to 'src/data/composite/wiki-properties/urls.js')
-rw-r--r--src/data/composite/wiki-properties/urls.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/composite/wiki-properties/urls.js b/src/data/composite/wiki-properties/urls.js
index 3160a0bf..04ccf689 100644
--- a/src/data/composite/wiki-properties/urls.js
+++ b/src/data/composite/wiki-properties/urls.js
@@ -1,14 +1,14 @@
 // A list of URLs! This will always be present on the data object, even if set
 // to an empty array or null.
 
-import {isURL, validateArrayItems} from '#validators';
+import {isCuratedURL, validateArrayItems} from '#validators';
 
 // TODO: Not templateCompositeFrom.
 
 export default function() {
   return {
     flags: {update: true, expose: true},
-    update: {validate: validateArrayItems(isURL)},
+    update: {validate: validateArrayItems(isCuratedURL)},
     expose: {transform: value => value ?? []},
   };
 }