« get me outta code hell

validators: oneOf -> anyOf - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkThing.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-03 20:31:13 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-03 20:35:09 -0400
commitcf70ea90286a6de7c9d4dad2aa33a0b8bec4a9ae (patch)
treeea31f9fc3bb0be72eab03715b889ffa80b6c7a1f /src/content/dependencies/linkThing.js
parentd83f4834af5ac18759c2e2c3ad4bb2c7e4900bee (diff)
validators: oneOf -> anyOf
Diffstat (limited to 'src/content/dependencies/linkThing.js')
-rw-r--r--src/content/dependencies/linkThing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index c5998c7..3971001 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -36,12 +36,12 @@ export default {
     },
 
     tooltip: {
-      validate: v => v.oneOf(v.isBoolean, v.isHTML),
+      validate: v => v.anyOf(v.isBoolean, v.isHTML),
       default: false,
     },
 
     color: {
-      validate: v => v.oneOf(v.isBoolean, v.isColor),
+      validate: v => v.anyOf(v.isBoolean, v.isColor),
       default: true,
     },