Whitespace in filename bug
See original GitHub issueimport Person_add_icon from '../../../../assets/images/icons/person add.svg'
Is converted into
function Person add (props) {
You should replace all whitespace string.replace(/\s/g, '')
.
And what if the filename starts, say, with a digit.
Or contains a dot.
You should just leave it as SVG.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
I'm “still afraid to use spaces in file names” years old
Spaces are nuisances that bring no benefit. At best we should use non-breaking space for filenames, but that would be even more atrocious....
Read more >Long filenames or paths with spaces require quotation marks
Solves an issue that occurs when you specify long filenames or paths with spaces.
Read more >FILENAME gets white spaces wiped out at its end - Fixed Bugs
It seems that one of the latest changes made it impossible to create filenames with whitespace before the dot of the file extension....
Read more >File not found. Empty spaces in filename workaround?
Hello,. I have a colleague who believes the reason why their users are having problems with accessing files because the files have spaces...
Read more >Issue with filename containing spaces - php - Stack Overflow
There is a bug in an OpenCart Framework version 3.0.2.0,. If there are files with the filename containing spaces between them, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@halt-hammerzeit Still thinking of changing to defaulting to
SVGReactComponent
if there is noname
parameter given. This way I can forgo having to parse the fifteen million ways people want to name their files.Another option is to allow for a
function
as thename
parameter that receives the filename, and then individuals can customize if they really want to.@halt-hammerzeit Are you using the new
titleCaseDelim
parameter to specify your own delimiter (eg.:/\s+/g
)?