From 0c5a8f4a648d25fd06d753226dac5da7605f35b3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Jan 2024 20:31:43 -0400 Subject: validators: anyOf: tweak list numbering --- src/data/things/validators.js | 4 ++-- 1 file 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 -- cgit 1.3.0-6-gf8a5