Browse Source

Merge pull request #163 from qor5/fix-reg

Fix pb path regex to support `-`
Chenyang 1 year ago
parent
commit
138a602bb6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pagebuilder/helper.go

+ 1 - 1
pagebuilder/helper.go

@@ -10,7 +10,7 @@ import (
 )
 
 var (
-	directoryRe = regexp.MustCompile(`^([\/]{1}[a-z0-9.]+)+(\/?){1}$|^([\/]{1})$`)
+	directoryRe = regexp.MustCompile(`^([\/]{1}[a-z0-9.-]+)+(\/?){1}$|^([\/]{1})$`)
 )
 
 const (