Descriptiongo.tools/imports: fix case where output not gofmt-compatible
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.
Patch Set 1 #Patch Set 2 : diff -r 40ad4f3c94ed https://code.google.com/p/go.tools #Patch Set 3 : diff -r 40ad4f3c94ed https://code.google.com/p/go.tools #
MessagesTotal messages: 3
|