mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 10:02:43 +00:00
tweak validation rules on Thumbnail & prevent invalid field from block valid fields
This commit is contained in:
@@ -14,6 +14,7 @@ module.exports = {
|
||||
return value?.length > 256 ? 'Max URL length of 256 characters.' : null;
|
||||
},
|
||||
(value)=>{
|
||||
if(value?.length == 0){return null;}
|
||||
try {
|
||||
Boolean(new URL(value));
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user