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

Property for File Name without File Extension #400

Open
DenisLabrecque opened this issue Jul 18, 2020 · 0 comments
Open

Property for File Name without File Extension #400

DenisLabrecque opened this issue Jul 18, 2020 · 0 comments

Comments

@DenisLabrecque
Copy link

The filename() property includes the file extension. Would be nice to have something similar to what this accomplishes:

  function fileName(url) {
     if (url === null || typeof url === 'undefined')
        return ''
     let file = new URI(url).filename() // File name with file extension
     return file.substring(0, file.lastIndexOf('.')) // Remove the extension
  }
@DenisLabrecque DenisLabrecque changed the title Property for File Name Separately Property for File Name without File Extension Jul 18, 2020
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

1 participant