Skip to content

Commit e893663

Browse files
authored
Fix globbing patterns used for jQuery UI 1.12 files list generation
`fast-glob` to which we switched from `glob` doesn't seem to exclude dotfiles in a path segment matched by an exclusion; explicitly exclude dotfiles in the pattern to account for that. Without this fix, directories like `.git` would end up in the zip file generated for CDN purposes. Closes gh-580
1 parent fff9f62 commit e893663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jquery-ui-files-1-12.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ function JqueryUiFiles_1_12_0( jqueryUi ) {
1616
readFile = this.readFile;
1717
stripJqueryUiPath = this.stripJqueryUiPath;
1818

19-
glob( jqueryUi.path + "!(node_modules|build)" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile );
20-
glob( jqueryUi.path + "!(node_modules|build)/**" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile );
19+
glob( jqueryUi.path + "!(.*|node_modules|build)" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile );
20+
glob( jqueryUi.path + "!(.*|node_modules|build)/**" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile );
2121

2222
this.componentFiles = Files( glob( jqueryUi.path + "ui/**/*.js" ).map( stripJqueryUiPath ).map( readFile ) );
2323

0 commit comments

Comments
 (0)