RegEx trigger doesn't match all occurences
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.4.1.19
- OS version: MacOS Ventura 13.2.1
- Attach
~/Library/Preferences/com.googlecode.iterm2.plist
here (drag-drop from finder into this window) - Attach a debug log, if possible.
- Attach a screen capture video if it would make the reproduction steps clearer.
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS Seriously! I'll probably ask you for it if you don’t.
Detailed steps to reproduce the problem
- Create a trigger for the following RegEx:
#\<[\w:]+(?= id:)
- Set it to highlight text. Change foreground and background
- Output text like the example below. It should have 3 string that should be matched by the RegEx
[#<Billings::ContractItem id: 44, created_at: "2023-03-24 13:20:10.246402000 +0000", updated_at: "2023-03-24 13:20:10.246402000 +0000", deleted_at: nil, contract_id: 83, requisition_id: 68, line_item_id: 93, progress_id: 133, position: 1, company_id: 81, project_id: 106, audit_transaction_timestamp: "2023-03-24 13:20:01.977863000 +0000", extended_amount: 0.0, description: nil, unit_cost: 0.0, quantity: 0.0, total_amount: 0.0, manual_amount: nil, approximate_bottom_line_amount: 0.0, uom: nil>, #<Billings::WholeChangeOrderItem id: 64, created_at: "2023-03-24 13:20:12.859107000 +0000", updated_at: "2023-03-24 13:20:12.859107000 +0000", deleted_at: nil, requisition_id: 68, change_order_id: 73, progress_id: 135, position: 2, company_id: 81, project_id: 106, audit_transaction_timestamp: "2023-03-24 13:20:01.977863000 +0000">, #<Billings::ChangeOrderItem id: 27, created_at: "2023-03-24 13:20:11.914908000 +0000", updated_at: "2023-03-24 13:20:11.914908000 +0000", deleted_at: nil, requisition_id: 68, line_item_id: 94, change_order_id: 39, progress_id: 134, position: 3, company_id: 81, project_id: 106, audit_transaction_timestamp: "2023-03-24 13:20:01.977863000 +0000">]
What happened
The first string that should be matched ([#<Billings::ContractItem id:...), is not highligthed
What should have happened
All three strings (#<Billings::ContractItem, #<Billings::WholeChangeOrderItem, #<Billings::ChangeOrderItem) should be highlighted