feat: optimize whitespace sanitization

Perhaps we should use `\s` here?
Need to ensure `\t` is not in `\s` first.
master
Dominique Merle 2 years ago
parent ecb0f8d1b4
commit f8f8e7bfb2

@ -29,7 +29,7 @@ func sanitizeInput(input string) string {
sanitized := input // inefficient, but makes code below more modular — TBD
// Remove duplicate spaces
sanitized = regexp.MustCompile(` +`).ReplaceAllString(sanitized, " ")
sanitized = regexp.MustCompile(` +`).ReplaceAllString(sanitized, " ")
// …

Loading…
Cancel
Save