Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wired result of basename(file, extname(file)) #1020

Closed
tauri-bot opened this issue Mar 4, 2024 · 1 comment
Closed

wired result of basename(file, extname(file)) #1020

tauri-bot opened this issue Mar 4, 2024 · 1 comment

Comments

@tauri-bot
Copy link

This issue has been upstreamed from tauri-apps/tauri-docs#1905

use ext from call extname for basename return wired result:

const ext = await extname('some-json-file.json'); // 'json'
const nameNoExt = await basename('some-json-file.json', ext); // 'some--file.'

Maybe the correct usage is as below?:

const ext = await extname('some-json-file.json'); // 'json'
const nameNoExt = await basename('some-json-file.json', '.' + ext); // some-json-file
@amrbashir
Copy link
Member

this is an issue for the main tauri repo and is being fixed in tauri-apps/tauri#9165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants