Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This function was previously changed from using strings.ToLower to a custom loop to ensure it only lowercases ASCII characters. This was more complicated than it needed to be and introduced more allocations than is necessary. Instead of that approach we call strings.Map with a simple ASCII lowercase mapping function. Sadly we still use the nice ASCII-only fast path that strings.ToLower had, but it's unlikely to be worth all the extra code.
- Loading branch information