Commit 762ef91
committed
Document matches function behavior for invalid regex patterns
Add comments clarifying that matches() returns false for invalid
regex patterns rather than erroring. This is intentional graceful
degradation since patterns may be user-provided at runtime.
Docs:
- Add comment explaining invalid pattern behavior
- Add inline comment at error return point1 parent 1feb5b4 commit 762ef91
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1048 | 1048 | | |
1049 | 1049 | | |
1050 | 1050 | | |
| 1051 | + | |
1051 | 1052 | | |
1052 | 1053 | | |
1053 | 1054 | | |
1054 | 1055 | | |
1055 | 1056 | | |
1056 | 1057 | | |
1057 | 1058 | | |
1058 | | - | |
| 1059 | + | |
1059 | 1060 | | |
1060 | 1061 | | |
1061 | 1062 | | |
| |||
0 commit comments