Created
December 1, 2018 07:05
-
-
Save ahafidi/d6a2fb3e3c28cf5f0a9ff581447bc8e5 to your computer and use it in GitHub Desktop.
filename from pathname
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const filename = pathname.replace(/^.*[\\\/]/g, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment