Fixes 7866. Adds a test case. When trying to add newlines before certain imports via text manipulation, a regex is used to iterate over all imports. The regex failed to match dot imports because \w doesn't match a literal dot. This changes the regex to accept a dot as well. LGTM=bradfitz R=bradfitz CC=golang-codereviews https://golang.org/cl/99400043 |
||
|---|---|---|
| .. | ||
| fix.go | ||
| fix_test.go | ||
| imports.go | ||
| mkindex.go | ||
| mkstdlib.go | ||
| sortimports.go | ||
| sortimports_compat.go | ||
| zstdlib.go | ||