mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-18 10:49:02 +00:00
make author email optional
This commit is contained in:
parent
a5ecd02068
commit
1f88c043dc
@ -88,7 +88,7 @@ const check = async (
|
|||||||
if (!passed) return false;
|
if (!passed) return false;
|
||||||
return mod.authors.map((author) => [
|
return mod.authors.map((author) => [
|
||||||
check(mod, 'authors.author.name', author.name, 'string'),
|
check(mod, 'authors.author.name', author.name, 'string'),
|
||||||
check(mod, 'authors.author.email', author.email, 'email'),
|
check(mod, 'authors.author.email', author.email, 'email', { optional: true }),
|
||||||
check(mod, 'authors.author.homepage', author.homepage, 'url'),
|
check(mod, 'authors.author.homepage', author.homepage, 'url'),
|
||||||
check(mod, 'authors.author.avatar', author.avatar, 'url'),
|
check(mod, 'authors.author.avatar', author.avatar, 'url'),
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user