Commit 891d348
authored
regex_remap: convert from pcre to Regex (#12575)
* regex_remap: convert from pcre to Regex
* get RegexMatchContext helper class working
* cleanup
* remove pcre2 match context features not in centos
* add back in comments from the pcre plugin
* refactor Regex::captureCount(), add unit tests
* change Regex api function convention, add to unit test
* better handling of regex exec call failure
* use errmsg in diags.log, restore older match limit test1 parent a2326be commit 891d348
9 files changed
Lines changed: 380 additions & 102 deletions
File tree
- include/tsutil
- plugins
- experimental/cookie_remap
- regex_remap
- src
- proxy/http/remap
- tsutil
- unit_tests
- tests/gold_tests/pluginTest/regex_remap
- replay
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
97 | 132 | | |
98 | 133 | | |
99 | 134 | | |
| |||
179 | 214 | | |
180 | 215 | | |
181 | 216 | | |
| 217 | + | |
182 | 218 | | |
183 | 219 | | |
184 | 220 | | |
185 | 221 | | |
186 | 222 | | |
187 | 223 | | |
188 | 224 | | |
189 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
190 | 236 | | |
191 | | - | |
192 | | - | |
| 237 | + | |
| 238 | + | |
193 | 239 | | |
194 | 240 | | |
195 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
0 commit comments