Files
harvester-ui-extension/pkg/harvester/validators/hash.js
2024-10-23 17:00:46 +02:00

8 lines
217 B
JavaScript

export function hashSHA512(value, getters, errors, validatorArgs, displayKey) {
if (!/^[a-f0-9]{128}$/i.test(value)) {
errors.push(getters['i18n/t']('harvester.validation.hash.sha512'));
}
return errors;
}