Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

Commit

Permalink
fix: adopt ignore patter to figmas pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
feerglas committed Jun 30, 2021
1 parent c2ff460 commit 0074e70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/figmaFrames.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion src/figmaPages.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit 0074e70

Please sign in to comment.