diff options
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 |
commit | 0c5a8f4a648d25fd06d753226dac5da7605f35b3 (patch) | |
tree | 4aa8da7634447855ec46beb388caa1399b33af78 /src/data | |
parent | cf70ea90286a6de7c9d4dad2aa33a0b8bec4a9ae (diff) |
validators: anyOf: tweak list numbering
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/validators.js | 4 |
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 |