From 61a02c4df8aeff4d236e2e5f206aeef06b794982 Mon Sep 17 00:00:00 2001 From: Nuno Antunes Date: Sat, 28 Mar 2015 16:22:34 +0000 Subject: [PATCH] Fix section name guessing on Windows --- commands/new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/new.go b/commands/new.go index 5721b7f88..28831bf07 100644 --- a/commands/new.go +++ b/commands/new.go @@ -93,7 +93,7 @@ func NewContent(cmd *cobra.Command, args []string) { var kind string // assume the first directory is the section (kind) - if strings.Contains(createpath[1:], "/") { + if strings.Contains(createpath[1:], string(filepath.Separator)) { kind = helpers.GuessSection(createpath) }