Commit 5335bdb
committed
[core:text/regex] Follow up to fix #6323 and add test case. As was said in the issue discussion I had suspicion that there may be a sibling bug in .Assert_Non_Word_Boundary implementation and I was able to confirm that with
re.findall(rB", ") python code. Odin implementation outputed an empty string wherase python gave "'". That is the same bug related to incorrect logic on string ends. This commit makes implementation of those 2 instructions cleaner and adds a test case.1 parent 3bcddb4 commit 5335bdb
File tree
2 files changed
+12
-16
lines changed- core/text/regex/virtual_machine
- tests/core/text/regex
2 files changed
+12
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 207 | + | |
| 208 | + | |
216 | 209 | | |
217 | 210 | | |
218 | 211 | | |
| |||
221 | 214 | | |
222 | 215 | | |
223 | 216 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | 217 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
232 | 224 | | |
233 | 225 | | |
234 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
567 | 571 | | |
568 | 572 | | |
569 | 573 | | |
| |||
0 commit comments