0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 22:22:42 +00:00
Files
homebrewery/client/homebrew/editor/metadataEditor/validations.js

21 lines
357 B
JavaScript

module.exports = {
title : [
(value)=>{
return value?.length > 10 ? 'Max title length of 10 characters' : null;
}
],
description : [
(value)=>{
return value?.length > 10 ? 'Max description length of 10 characters' : null;
}
],
thumbnail : [
(value)=>{
return value?.length > 5 ? 'Max URL length of 5 characters' : null;
}
]
};