Skip to content

Commit

Permalink
Merge pull request olekukonko#38 from flat20/master
Browse files Browse the repository at this point in the history
Updated regexps to support right aligned negative values.
  • Loading branch information
olekukonko authored Jun 21, 2016
2 parents 8d0265a + b0baeaa commit daf2955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const (
)

var (
decimal = regexp.MustCompile(`^\d*\.?\d*$`)
percent = regexp.MustCompile(`^\d*\.?\d*$%$`)
decimal = regexp.MustCompile(`^-*\d*\.?\d*$`)
percent = regexp.MustCompile(`^-*\d*\.?\d*$%$`)
)

type Border struct {
Expand Down

0 comments on commit daf2955

Please sign in to comment.