From 399941f175e284e67732111436af2f373df8c402 Mon Sep 17 00:00:00 2001 From: Cameron McAvoy Date: Wed, 14 Oct 2020 15:47:06 -0500 Subject: [PATCH] Simplify regex --- import.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/import.go b/import.go index e2d8ce2..0afb8be 100644 --- a/import.go +++ b/import.go @@ -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.