fix(Doc2xPreprocessProvider): replace filePath split with path.parse… (#8042)

This commit is contained in:
西街工坊 2025-07-11 11:03:05 +08:00 committed by GitHub
parent 10e512f32e
commit 808a22d5c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,7 +217,7 @@ export default class Doc2xPreprocessProvider extends BasePreprocessProvider {
* @param filePath
*/
private async convertFile(uid: string, filePath: string): Promise<void> {
const fileName = path.basename(filePath).split('.')[0]
const fileName = path.parse(filePath).name
const config = {
...this.createAuthConfig(),
headers: {