mirror of https://github.com/astral-sh/ruff
**Summary** The `value` of the `FStringMiddle` for `f"""}}ab"""` is `}ab`, i.e. the curly brace escaping is decoded. If we iterate over string this gives us false indices causing exploding fixes for PLE251 rules (PLE2510, PLE2512, PLE2513, PLE2514, PLE2515). Instead, we now use the source range. Handles https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998106 Handles https://github.com/astral-sh/ruff/issues/7455#issuecomment-1741998256 **Test Plan** Minimized fuzzing cases as fixtures. |
||
|---|---|---|
| .. | ||
| test | ||