File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ target_link_libraries(vtbackend PUBLIC
104
104
fmt::fmt-header-only
105
105
range-v3::range-v3
106
106
${LIBUNICODE_LIBS}
107
+ regex_dfa
107
108
vtparser
108
109
vtpty
109
110
)
Original file line number Diff line number Diff line change 15
15
#include < vtbackend/Terminal.h>
16
16
#include < vtbackend/TerminalState.h>
17
17
18
+ #include < regex_dfa/RegExprParser.h>
19
+
18
20
namespace terminal
19
21
{
20
22
@@ -29,9 +31,7 @@ TerminalState::TerminalState(Terminal& terminal):
29
31
te->discardImage (*image);
30
32
} },
31
33
hyperlinks { HyperlinkCache { 1024 } },
32
- urlPattern { settings.urlPattern ,
33
- std::regex_constants::ECMAScript | std::regex_constants::optimize
34
- | std::regex_constants::icase },
34
+ urlPattern { regex_dfa::RegExprParser {}.parse (settings.urlPattern ) },
35
35
sequencer { terminal },
36
36
parser { std::ref (sequencer) },
37
37
viCommands { terminal },
Original file line number Diff line number Diff line change 30
30
31
31
#include < vtparser/Parser.h>
32
32
33
+ #include < regex_dfa/RegExpr.h>
34
+
33
35
#include < fmt/format.h>
34
36
35
37
#include < atomic>
@@ -206,7 +208,7 @@ struct TerminalState
206
208
// Hyperlink related
207
209
//
208
210
HyperlinkStorage hyperlinks {};
209
- std::regex urlPattern;
211
+ regex_dfa::RegExpr urlPattern;
210
212
211
213
std::string windowTitle {};
212
214
std::stack<std::string> savedWindowTitles {};
You can’t perform that action at this time.
0 commit comments