Skip to content

Commit 76d765e

Browse files
fix error when validating dot imports (#45)
Fixes #44 Signed-off-by: Matheus Alcantara <[email protected]>
1 parent 73cde23 commit 76d765e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gci/imports/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (i ImportDef) Validate() error {
3838
func checkAlias(alias string) error {
3939
for idx, r := range alias {
4040
if !unicode.IsLetter(r) {
41-
if r != '_' {
41+
if r != '_' && r != '.' {
4242
if idx == 0 || !unicode.IsDigit(r) {
4343
// aliases may not start with a digit
4444
return InvalidCharacterError{r, alias}

0 commit comments

Comments
 (0)