Find the first balanced `[...]` substring.
(text: &str)
| 364 | |
| 365 | /// Find the first balanced `[...]` substring. |
| 366 | fn find_balanced_json_array(text: &str) -> Option<&str> { |
| 367 | find_balanced(text, '[', ']') |
| 368 | } |
| 369 | |
| 370 | fn find_balanced(text: &str, open: char, close: char) -> Option<&str> { |
| 371 | find_balanced_range(text, open, close).map(|(start, end)| &text[start..end]) |
no test coverage detected