Skip to content

Commit

Permalink
Added a fix for file names with special characters cannot be played i…
Browse files Browse the repository at this point in the history
…n Nora player. #323
  • Loading branch information
Sandakan committed Mar 4, 2025
1 parent 984b14f commit 21e122a
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 89 deletions.
3 changes: 2 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export default tsLint.config(
'@typescript-eslint/no-explicit-any': 'off',
'react/no-unescaped-entities': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-explicit-any': 'warn'
'@typescript-eslint/no-explicit-any': 'warn',
'no-useless-escape': 'off'
}
}
);
172 changes: 86 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
"tailwindcss": "^3.3.2",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.7.0",
"typescript": "^5.8.0",
"typescript-eslint": "^8.18.2",
"vite": "^6.1.1"
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function addEventsToCache(dataType: DataUpdateEventTypes, data = [] as string[],
const handleFileProtocol = async (request: GlobalRequest): Promise<GlobalResponse> => {
try {
const urlWithQueries = decodeURI(request.url).replace(
/nora:[/\\]{1,2}localfiles[/\\]{1,2}/gm,
/^(nora:[\/\\]{1,2}localfiles[\/\\]{1,2})|(\?ts\=\d+)?$/gm,
''
);
const [filePath] = urlWithQueries.split('?');
Expand Down

0 comments on commit 21e122a

Please sign in to comment.