Overview
| Comment: | Fix [1178541]: with REG_BOSONLY only the first alternative was anchored at the beginning of the string, because the flag was implemented by inserting \A as the first token. Instead, do not allow the top-level NFA to start a match anywhere else. Patch by Tom Lane. New test reg-30.9. |
|---|---|
| Timelines: | family | ancestors | descendants | both | regexp-bosonly-alternatives |
| Files: | files | file ages | folders |
| SHA3-256: |
d1dd282861426ef6a01011ec6e5b9fa2 |
| User & Date: | serhiy.storchaka on 2026-10-11 08:45:09.035 |
| Other Links: | branch diff | manifest | tags |
Context
|
2026-10-11
| ||
| 20:53 | Fix [1178541]: with REG_BOSONLY only the first alternative was anchored at the beginning of the stri... check-in: a712586c65 user: jan.nijtmans tags: trunk, main | |
| 08:45 | Fix [1178541]: with REG_BOSONLY only the first alternative was anchored at the beginning of the stri... closed check-in: d1dd282861 user: serhiy.storchaka tags: regexp-bosonly-alternatives | |
|
2026-10-10
| ||
| 22:30 | Fix [75c9d9cece]: regexp sometimes allows an invalid backref to be matched check-in: 9383b0c913 user: jan.nijtmans tags: trunk, main | |
Changes
Modified generic/regc_lex.c
from [ac84fc9501]
to [6ee7ee3df1].
[diff]
Modified generic/regc_nfa.c
from [2ae6374958]
to [07d05e8c2b].
[diff]
Modified generic/regex.h
from [fb5d129691]
to [60a8ec0a81].
[diff]
Modified generic/tclInt.h
from [397e1d70c4]
to [0616d185b0].
[diff]
Modified tests/reg.test
from [8378551bcc]
to [634aeac310].
[diff]