Mercurial > octave
comparison libgui/qterminal/libqterminal/QTerminal.cc @ 33265:421c45e180ce
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 28 Mar 2024 16:26:44 +0100 |
parents | 49128bdb9eb2 7cef76b2d1da |
children | 28c7f3195d3a |
comparison
equal
deleted
inserted
replaced
33263:a7d829ba6d44 | 33265:421c45e180ce |
---|---|
105 } | 105 } |
106 #endif | 106 #endif |
107 | 107 |
108 if (has_selected_text) | 108 if (has_selected_text) |
109 { | 109 { |
110 QRegularExpression expr {".*\b*(\\w+)\b*.*"}; | 110 QRegularExpression expr {"(\\w+)"}; |
111 QRegularExpressionMatch match = expr.match (selected_text); | 111 QRegularExpressionMatch match = expr.match (selected_text); |
112 | 112 |
113 if (match.hasMatch ()) | 113 if (match.hasMatch ()) |
114 { | 114 { |
115 QString expr_found = match.captured (1); | 115 QString expr_found = match.captured (1); |