mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 07:17:00 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
9
tools/executors/figmaRes/figma/util.js
Normal file
9
tools/executors/figmaRes/figma/util.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// 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());
|
||||
};
|
||||
Reference in New Issue
Block a user