feat(presets): substitute entire parameter string for {{args}}#36771
feat(presets): substitute entire parameter string for {{args}}#36771rarkins merged 2 commits intorenovatebot:mainfrom
{{args}}#36771Conversation
astellingwerf
left a comment
There was a problem hiding this comment.
This seems like it is the wrong solution for this problem. If the comma confuses the preset string parser, shouldn't we instead add support for escaping commas?
{{args}} may still be valuable for varargs kinda references, but that's an entirely different usecase.
I use globs instead of regexes exactly to avoid double-escaping (one Also, strictly speaking, such change won't be backwards-compatible.
There's (currently) no way to generate a json array, not even talking about anything more complex. So varargs are pretty much useless. You can't even use |
Changes
Allow passing values containing commas to presets. Substitute
{{args}}in the preset with the entire string between parentheses.Context
I use presets for custom regex managers. I pass
managerFilePatternsas a parameter. Glob syntax is much more convenient than regex, but glob syntax often needs commas.Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: