You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rule variables are meant to be static. Just rename the rule variable to url_prefix and move the reference from the variable to the template. You could even have the variable itself be a primitive template which is evaluated inside the template (you can have jinja2 in template variables or as the template content, e.g. https://github.com/maubot/reactbot/blob/master/samples/random-reaction.yaml#L6)
right, that works for the given case. my example does not cover this, but as you have more complex cases (e.g. URLs aren't just prefixes anymore) or are made up of multiple parts, I'm back to code/yaml duplication, no?
HarHarLinks
changed the title
Usebackreferences in variables
Use backreferences in variables
Feb 23, 2024
Building on the nitter sample, it would be pretty neat if we could do this:
The text was updated successfully, but these errors were encountered: