mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
8 lines
217 B
JavaScript
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;
|
|
}
|