Locate needle inside haystack, reporting how and where it matched. Typography is folded to
ASCII on both sides, then a normalized exact substring check (case- and whitespace-insensitive)
always runs first; on a miss — and only when threshold is below 1 — a windowed fuzzy scan runs
and the best window score is reported. The needle must be contiguous in the haystack; for quotes
that elide their middle (…, [...], blank lines), see looseMatch.
Locate
needleinsidehaystack, reporting how and where it matched. Typography is folded to ASCII on both sides, then a normalized exact substring check (case- and whitespace-insensitive) always runs first; on a miss — and only whenthresholdis below1— a windowed fuzzy scan runs and the best window score is reported. The needle must be contiguous in the haystack; for quotes that elide their middle (…,[...], blank lines), see looseMatch.