# Open Policy Agent (OPA) v1.12.1

2025-12-18 · [Original release notes](https://github.com/open-policy-agent/opa/releases/tag/v1.12.1) · [Full summary](https://ratatosk.io/en/releases/opa/v1.12.1)

Important fixes 1

## Important fixes (1)

### Anchored regular-expression behavior restored in `regex.replace`

- Affects: policies using `regex.replace` with anchored regular expressions (Inferred)

In the previous release, making `regex.replace` respect cancellation unintentionally changed its behavior with anchored regular expressions. This release reverts that change and restores the prior behavior.

> This bug fix release reverts a change to `regex.replace` that unintentionally changed its behaviour for anchored regular expressions.
> - Revert "topdown: make `regex.replace` respect cancellation" (authored by @srenatus)
> This bug fix release reverts a change to `regex.replace` that unintentionally changed its behaviour for anchored regular expressions.
> - Revert "topdown: make `regex.replace` respect cancellation" (authored by @srenatus)

---

Summaries are produced by AI, so they can be wrong, and they are provided without warranty.
