Valid filename characters made more permissive#7096
Valid filename characters made more permissive#7096Convincible wants to merge 1 commit intojekyll:masterfrom Convincible:patch-1
Conversation
|
Is there anything either built into Ruby or provided by a widely used Gem that could handle this for us? I don't like being the arbiter of what is a valid filename. |
|
@pathawks Good thought. The short answer as far as I can tell is no. From my understanding:
Currently we are simply permitting only names that match the Regex I am suggesting nudging our 'middle ground' over just a bit to include other filename characters people will commonly want to use, such as I think it's fair enough for Jekyll to determine the characters it accepts i.e. impose a sort of file naming convention for its own sanity. This just needs to match how people may want to use it. Personally I find characters like |
|
@Convincible The character class |
|
@ashmaroli Fair enough, I suggest closing: I forgot that underscore is already included in |
Possible if you can provide a strong use-case. |
|
Actually I think I remember where I was coming from originally. It's a pretty minor thing but:
...then your choice of This is obviously dependent on the OS and program displaying the file list, so the developer would choose the separator based on how it behaves in their environment. |
|
👋 Bump from the dead — I would love to see this implemented. I want to use a versioned Using the |
|
Superseded by #8618 |
Fixes #7087