diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/scripts/maintainers.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/scripts/maintainers.go b/util/scripts/maintainers.go index c68ea058f0..53beb2ccf7 100644 --- a/util/scripts/maintainers.go +++ b/util/scripts/maintainers.go @@ -77,6 +77,14 @@ func get_maintainers() ([]string, error) { } func path_to_regexstr(path string) string { + /* Add missing trailing slash if path is a directory */ + if path[len(path)-1] != '/' { + fileInfo, err := os.Stat(path) + if err == nil && fileInfo.IsDir() { + path += "/" + } + } + regexstr := glob_to_regex(path) /* Handle path with trailing '/' as prefix */ |