Skip to content

Commit

Permalink
text: remove unused regular expression (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedib0t committed Mar 15, 2024
1 parent 142bdf4 commit 98472a2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions text/align.go
Expand Up @@ -2,7 +2,6 @@ package text

import (
"fmt"
"regexp"
"strconv"
"strings"
"unicode/utf8"
Expand All @@ -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 "
Expand Down

0 comments on commit 98472a2

Please sign in to comment.