Allow \ in setvar#3519
Conversation
|
|
Hi @JonathanBerrew, it would be nice to explain the reason with an example, why it is necessary and in which case is it useful to allow |
|
Sadly I don't know why Marc made those modifications, I wasn't working on the project at the time. If this seem unnecessary, you can close the PR |
I see. I don't want to close this PR without any reason. If Marc made this modification, that means it's possible useful, but I would like to understand it. Beside of that, we need to documentation the behavior, and give examples to users, so this is why it would be good. |
|
No tests, and no use cases. 🤷 I'll close. |
|
This could be useful to have a setvar with a windows path for example or any regex. This keep the previous behaviour that was working for the escaping of the single quote |
Thanks for this explanation. Anyway, it could be very good to add a real-world example. Eg. if you use this feature, just a small part any of your rule where you use that. |
|
In our rules, we have: Here we have |
Uhm, without the mentioned |
|
Here is another example:
We also have:
Another example:
|




This is a Marc Stern modification, I don't have much more insight on the code he made. To be reviewed with caution and check if this is still relevant