mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 21:55:02 +03:00
10 lines
304 B
JavaScript
10 lines
304 B
JavaScript
// Determine whether it is a two-color icon
|
|
module.exports.isDuotone = function isDuotone(name) {
|
|
return /[Dd]{1}uotone$/.test(name);
|
|
};
|
|
|
|
// Determine whether it is a brand trademark
|
|
module.exports.isBrands = function isBrands(name) {
|
|
return ['figma', 'youtube'].includes(name.toLowerCase());
|
|
};
|