Skip to content

Commit

Permalink
Simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
cnmcavoy committed Oct 14, 2020
1 parent 2c5afc3 commit 399941f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
)

var commentRegex = regexp.MustCompile(`(//.*)|(/\*.*\*\/)`)
var commentRegex = regexp.MustCompile(`(//.*)|(/\*.*\*/)`)

// Imports represents the list of imports in a given go file.
// This helper encapsulates the logic for sorting imports based on go-groups.
Expand Down

0 comments on commit 399941f

Please sign in to comment.