Use raw string literal syntax

Gets rid of those pesky backslashes.
This commit is contained in:
Justinas Stankevičius 2014-08-15 20:40:00 +03:00
parent 6dafba9632
commit 5f2bd78693

View File

@ -15,7 +15,8 @@ import (
"strings"
)
var filenameRegex = "^([0-9]+)_(.*)\\.(up|down)\\.%s$"
var filenameRegex = `^([0-9]+)_(.*)\.(up|down)\.%s$`
// FilenameRegex builds regular expression stmt with given
// filename extension from driver.