-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow [format] pattern for ID generation #2387
Conversation
Sure, I'd be happy to include this. We should just check though that it does work well with unsanitized format inputs - that is we allow |
Oh, to clarify things for me - you would like to ensure With v1 coming soon-ish (right? 😄) is it worth adding extra (& temporary) code to support this? |
@Andarist the opposite - if providing |
So this is actually other way around 😄 I think you want to normalize this other way around? And unify naming to |
Ah I see, best to leave format internally to |
Or do you think |
Personally I would avoid renormalization, seems weird to normalize it one way first & renormalize it "back" later. I can do it if you feel it's the right thing to do though. Is there any problem with switching to
Kinda don't care that much about it 😄 I'm fine with any decision you can make about this. The whole purpose of this (for me) is to reuse |
I'm all for consistent |
Side Tangent: Just a little Rollup history question. Is there a reason we're using square brackets for filename "templates" instead of one of the other usual template-indicator characters, like curly braces? |
@Andarist we just need to still ensure that the observable format in options for plugins matches what we have right now - Let's go the convoluted route for now I think :) Would be great to get this updated and merged. |
2ef355e
to
6e00990
Compare
Done |
Thanks! The test file just needs to be renamed to use the |
6e00990
to
000ebf9
Compare
Damn, forgot about file names references in file contents 😅 I think it should be OK now. |
Great thanks, just needs one more approval to merge. |
This PR contains:
Breaking Changes?
Well, there is possible (but HIGHLY unlikely) breakage. If somebody has uses
[format]
in their filenames.Please Describe Your Changes
They are super simple, I've just added support for
[format]
in file names patterns.