Skip to content
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

Regex groups in triggers are processed after expression #224

Closed
haavard opened this issue Oct 5, 2014 · 0 comments
Closed

Regex groups in triggers are processed after expression #224

haavard opened this issue Oct 5, 2014 · 0 comments
Assignees
Labels
bug Unexpected problem or unintended behavior
Milestone

Comments

@haavard
Copy link
Contributor

haavard commented Oct 5, 2014

To reproduce:

  1. /trigger add greentext modifier "weechat_print" "${tg_message_nocolor} =~ ^>" "/(.*)/${tg_prefix}\t${color:green}${tg_message}" ""
  2. Type >foo $100 bar
  3. The resulting text will be >foo 0 bar (in green)

Caused by regex groups being processed after the trigger expression.

@flashcode flashcode added the bug Unexpected problem or unintended behavior label Oct 5, 2014
@flashcode flashcode added this to the 1.1 milestone Oct 5, 2014
@flashcode flashcode self-assigned this Oct 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants