Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms committed Mar 21, 2018
1 parent bfa667b commit 7376d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ var (
// path/URL segment in the form of 06_Foo. As well as for
// "slugging" the URL/path segment.
NodePathTitleRegexp = regexp.MustCompile(`^0?(\d+)[_,-]+(.*)$`)
NodePathInvalidCharsRegexp = regexp.MustCompile("[^A-Za-z0-9-_]")
NodePathMultipleDashRegexp = regexp.MustCompile("-+")
NodePathInvalidCharsRegexp = regexp.MustCompile(`[^A-Za-z0-9-_]`)
NodePathMultipleDashRegexp = regexp.MustCompile(`-+`)
)

// Constructs a new node using its path in the filesystem. Returns a
Expand Down

0 comments on commit 7376d10

Please sign in to comment.