« get me outta code hell

validators: anyOf: tweak list numbering - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-03 20:31:43 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-03 20:35:10 -0400
commit0c5a8f4a648d25fd06d753226dac5da7605f35b3 (patch)
tree4aa8da7634447855ec46beb388caa1399b33af78 /src
parentcf70ea90286a6de7c9d4dad2aa33a0b8bec4a9ae (diff)
validators: anyOf: tweak list numbering
Diffstat (limited to 'src')
-rw-r--r--src/data/things/validators.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/validators.js b/src/data/things/validators.js
index 866a9dad..01062e7d 100644
--- a/src/data/things/validators.js
+++ b/src/data/things/validators.js
@@ -766,8 +766,8 @@ export function anyOf(...validators) {
     for (const [validator, i, error] of prefaceErrorInfo.concat(errorInfo)) {
       error.message =
         (validator?.name
-          ? `(#${i + 1} "${validator.name}") ${error.message}`
-          : `(#${i + 1}) ${error.message}`);
+          ? `${i + 1}. "${validator.name}": ${error.message}`
+          : `${i + 1}. ${error.message}`);
 
       error.check =
         (Array.isArray(validator) && validator.length === 1