Skip to content

Commit 5b13e95

Browse files
Eswar809scidomino
authored andcommitted
fix(core): ignore .pak and .rpa game archive formats by default (#26884)
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
1 parent 6859a0d commit 5b13e95

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/core/src/utils/ignorePatterns.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ describe('FileExclusions', () => {
203203
describe('BINARY_EXTENSIONS', () => {
204204
it.each([
205205
['common binary file extensions', ['.exe', '.dll', '.jar', '.zip']],
206+
['game archive file extensions', ['.pak', '.rpa']],
206207
['additional binary extensions', ['.dat', '.obj', '.wasm']],
207208
['media file extensions', ['.pdf', '.png', '.jpg']],
208209
])('should include %s', (_, extensions) => {

packages/core/src/utils/ignorePatterns.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export const BINARY_FILE_PATTERNS: string[] = [
3838
'**/*.bz2',
3939
'**/*.rar',
4040
'**/*.7z',
41+
'**/*.pak',
42+
'**/*.rpa',
4143
'**/*.doc',
4244
'**/*.docx',
4345
'**/*.xls',

0 commit comments

Comments
 (0)