Skip to content

Commit

Permalink
fix: windows path rules
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMinds committed Apr 26, 2024
1 parent 044e9a4 commit a63462d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorecord/manager",
"version": "1.1.0",
"version": "1.1.1",
"description": "Batch scheduling recorders",
"main": "./lib/index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function removeSystemReservedChars(filename: string) {
if (process.platform !== 'win32') return filename

// Refs: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
return filename.replace(/[\\/:*?"<>|]/g, '')
return filename.replace(/[\\/:*?"<>|]/g, '').replace(/[ .]+$/, '')
}

export type GetProviderExtra<P> = P extends RecorderProvider<infer E> ? E : never

0 comments on commit a63462d

Please sign in to comment.