pub fn detection_text<'a>(path: &Path, text: &'a str) -> Cow<'a, str>Expand description
Return the text scanners should inspect for this file.
Source maps and Jupyter notebooks embed the human-authored text inside a JSON wrapper; for those we hand scanners the extracted text instead of the raw JSON so detection sees what a reader would. All other files pass through unchanged.