summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cell.go b/cell.go
index 281ab45..c5cd838 100644
--- a/cell.go
+++ b/cell.go
@@ -532,6 +532,10 @@ func checkCellInArea(cell, area string) bool {
area = strings.ToUpper(area)
ref := strings.Split(area, ":")
+ if len(ref) < 2 {
+ return false
+ }
+
from := ref[0]
to := ref[1]