Skip to content

Commit

Permalink
linguist generated (#169)
Browse files Browse the repository at this point in the history
Signed-off-by: Benji Visser <[email protected]>
  • Loading branch information
noqcks authored Nov 23, 2024
1 parent ba1d69a commit 45df81e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async function getCustomGeneratedFiles(ctx, owner, repo) {
const lines = buff.toString('ascii').split('\n');

lines.forEach((item) => {
if (item.includes('linguist-generated=true')) {
if (/linguist-generated(?:=true)?\b(?!=false)/.test(item)) {
files.push(item.split(' ')[0]);
}
});
Expand Down

0 comments on commit 45df81e

Please sign in to comment.