Skip to content

Commit 1fae391

Browse files
committed
fix: correct exclusion logic to check each item in the exclude array
1 parent 5c67ec5 commit 1fae391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
182182
for (let file of files) {
183183
let skip = false;
184184
for (let i = 0; i < exclude.length; i++) {
185-
if (file.includes(exclude)) {
185+
if (file.includes(exclude[i])) {
186186
skip = true;
187187
break;
188188
}

0 commit comments

Comments
 (0)