diff --git a/src/figmaFrames.js b/src/figmaFrames.js index ce33ab1..187300d 100644 --- a/src/figmaFrames.js +++ b/src/figmaFrames.js @@ -1,4 +1,4 @@ -const shouldIgnoreFrame = (frame, frameIgnorePattern) => frame.name.indexOf(frameIgnorePattern) !== -1; +const shouldIgnoreFrame = (frame, frameIgnorePattern) => frame.name.indexOf(frameIgnorePattern) === 0; // Get frames from 1st page of the Figma file module.exports = (figmaPage, frameIgnorePattern) => { diff --git a/src/figmaPages.js b/src/figmaPages.js index 7c0afcb..a68517d 100644 --- a/src/figmaPages.js +++ b/src/figmaPages.js @@ -1,4 +1,4 @@ -const shouldIgnorePage = (page, ignorePattern) => page.name.indexOf(ignorePattern) !== -1; +const shouldIgnorePage = (page, ignorePattern) => page.name.indexOf(ignorePattern) === 0; // Get frames from 1st page of the Figma file module.exports = (figmaData, ignorePattern) => {