File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77 // bucketUrl defaults to this file location
88 // ensure it's on bucket root leve level (e.g. key: 'index.html')
99 // bucketUrl: https://s3.eu-central-1.amazonaws.com/example-bucket
10- keyExcludePattern : / ^ i n d e x \. h t m l $ / ,
10+ keyExcludePatterns : [ / ^ i n d e x \. h t m l $ / ] ,
1111 pageSize : 50 ,
1212 title : 'AWS S3 Bucket Browser' ,
1313 subtitle : 'made with ♥ by qoomon' ,
@@ -344,7 +344,7 @@ <h2 class="subtitle">{{config.subtitle}}</h2>
344344 } ) ;
345345 } ) ;
346346 contents
347- . filter ( content => ! config . keyExcludePattern || ! content . key . match ( config . keyExcludePattern ) )
347+ . filter ( content => ! config . keyExcludePatterns . find ( pattern => pattern . test ( content . key ) ) )
348348 . forEach ( content => {
349349 if ( content . key . endsWith ( '/' ) && ! content . size ) {
350350 if ( content . key !== this . pathPrefix )
You can’t perform that action at this time.
0 commit comments