[resolves #29] support situations such as Match("*/", "a/")
diff --git a/doublestar.go b/doublestar.go
index d17663e..49cc5b5 100644
--- a/doublestar.go
+++ b/doublestar.go
@@ -249,8 +249,12 @@
 	if patternLen == 0 && nameLen == 0 {
 		return true, nil
 	}
-	if patternLen == 0 || nameLen == 0 {
-		return false, nil
+	if patternLen == 0 {
+		if nameLen == 1 && nameComponents[0] == "" {
+			return true, nil
+		} else if nameLen == 0 {
+			return false, nil
+		}
 	}
 
 	slashIdx := indexRuneWithEscaping(pattern, '/')
diff --git a/doublestar_test.go b/doublestar_test.go
index 307fa72..b23a41d 100644
--- a/doublestar_test.go
+++ b/doublestar_test.go
@@ -31,6 +31,7 @@
 	{"abc", "abc", true, nil, true},
 	{"*", "abc", true, nil, true},
 	{"*c", "abc", true, nil, true},
+	{"*/", "a/", true, nil, false},
 	{"a*", "a", true, nil, true},
 	{"a*", "abc", true, nil, true},
 	{"a*", "ab/c", false, nil, true},