Repository navigation
Commit 9d93fb8
committed
fix: PINNED_BACKREFERENCE bugs from PR #94 review
Require group/backref pair to span the whole pattern, enforce
group/separator length bounds in generated bytecode, and fix
matchBounded to report absolute (not substring-relative) spans.
Patterns with anchors outside the span now correctly fall through
to VARIABLE_CAPTURE_BACKREF.1 parent 343e776 commit 9d93fb8
11 files changed
Lines changed: 318 additions & 212 deletions
File tree
- reggie-codegen/src
- main/java/com/datadoghq/reggie/codegen
- analysis
- codegen
- test/java/com/datadoghq/reggie/codegen
- analysis
- codegen
- reggie-runtime/src/test/java/com/datadoghq/reggie/runtime
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3575 | 3575 | | |
3576 | 3576 | | |
3577 | 3577 | | |
| 3578 | + | |
| 3579 | + | |
| 3580 | + | |
| 3581 | + | |
| 3582 | + | |
| 3583 | + | |
| 3584 | + | |
| 3585 | + | |
3578 | 3586 | | |
3579 | 3587 | | |
3580 | 3588 | | |
| |||
3605 | 3613 | | |
3606 | 3614 | | |
3607 | 3615 | | |
| 3616 | + | |
| 3617 | + | |
3608 | 3618 | | |
3609 | 3619 | | |
3610 | 3620 | | |
| |||
3613 | 3623 | | |
3614 | 3624 | | |
3615 | 3625 | | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
3616 | 3647 | | |
3617 | 3648 | | |
3618 | 3649 | | |
| |||
3623 | 3654 | | |
3624 | 3655 | | |
3625 | 3656 | | |
| 3657 | + | |
3626 | 3658 | | |
3627 | | - | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
3628 | 3662 | | |
3629 | 3663 | | |
3630 | 3664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
54 | 68 | | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
| 72 | + | |
58 | 73 | | |
59 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| 80 | + | |
63 | 81 | | |
64 | 82 | | |
| 83 | + | |
| 84 | + | |
65 | 85 | | |
66 | 86 | | |
67 | 87 | | |
| |||
75 | 95 | | |
76 | 96 | | |
77 | 97 | | |
| 98 | + | |
78 | 99 | | |
79 | 100 | | |
| 101 | + | |
| 102 | + | |
80 | 103 | | |
81 | 104 | | |
82 | 105 | | |
| |||
0 commit comments