From 98472a2757cf4ab2d5d60bd9c8ec465f9a728091 Mon Sep 17 00:00:00 2001 From: Naveen Mahalingam Date: Thu, 14 Mar 2024 21:43:58 -0700 Subject: [PATCH] text: remove unused regular expression (#308) --- text/align.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/text/align.go b/text/align.go index c11b511..2a1068a 100644 --- a/text/align.go +++ b/text/align.go @@ -2,7 +2,6 @@ package text import ( "fmt" - "regexp" "strconv" "strings" "unicode/utf8" @@ -21,11 +20,6 @@ const ( AlignAuto // AlignRight for numbers, AlignLeft for the rest ) -var ( - // reNumericText - Regular Expression to match numbers. - reNumericText = regexp.MustCompile(`^\s*[+\-]?\d*[.]?\d+\s*$`) -) - // Apply aligns the text as directed. For ex.: // - AlignDefault.Apply("Jon Snow", 12) returns "Jon Snow " // - AlignLeft.Apply("Jon Snow", 12) returns "Jon Snow "