mirror of
https://github.com/golang/go
synced 2024-11-18 18:24:48 -07:00
1154a04eb0
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_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
sortimports_compat.go | ||
sortimports.go | ||
zstdlib.go |