Cannot capture tabs on triggers
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version:Build 3.1.6
- OS version:MacOS High Sierra 10.13.4 (17E202)
- Attach com.hipchat.HipChat.plistcom.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
- Are you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot
Detailed steps to reproduce the problem:
- Create a text highlight with the following regex:
(?<=X)(\S*)(?=\sX)
- Run this:
echo -e "X\tX"
What happened: all spaces but the last between the two "X" characters are highlighted
What should have happened: nothing should have been highlighted
iTerm2 is filling the tabulation space before the last character with U+F001, which is not recognized by the regex matcher as a space. The trigger should either receive a single tab character as input, or whatever filler is used should be recognized as a space.