Skip to content

Commit b73f799

Browse files
committed
fix bounding on account regex
1 parent ca38737 commit b73f799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cartogram/pack.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
const (
15-
accountRegexString = `(\d+)(/(\w+))?`
15+
accountRegexString = `^(\d+)(/(\w+))?$`
1616
)
1717

1818
// AccountRegex matches an account number with an optional role name

0 commit comments

Comments
 (0)