ruff/crates/ruff_notebook/src
konsti cd3c2f773f
Prevent invalid utf8 indexing in cell magic detection (#9146)
The example below used to panic because we tried to split at 2 bytes in
the 4-bytes character `转`.
```python
def sample_func(xx):
    """
    转置 (transpose)
    """
    return xx.T
```

Fixes #9145
Fixes https://github.com/astral-sh/ruff-vscode/issues/362

The second commit is a small test refactoring.
2023-12-15 08:15:46 -06:00
..
cell.rs Prevent invalid utf8 indexing in cell magic detection (#9146) 2023-12-15 08:15:46 -06:00
index.rs Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
lib.rs Add CellOffsets abstraction (#8814) 2023-11-22 15:27:00 +00:00
notebook.rs Prevent invalid utf8 indexing in cell magic detection (#9146) 2023-12-15 08:15:46 -06:00
schema.rs Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00