Skip to content

Commit f64e5e7

Browse files
committed
Update regexes
1 parent bf1418d commit f64e5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/files/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func CopyAll(sourcePath, destinationPath string) error {
2020

2121
// CopyWithoutDev method copies files from the source to the destination, but skips _dev directories and empty folders.
2222
func CopyWithoutDev(sourcePath, destinationPath string) error {
23-
return CopyWithSkipped(sourcePath, destinationPath, []string{"_dev", "build", ".git"}, []string{"\\.DS_Store", "\\..*\\.swp"})
23+
return CopyWithSkipped(sourcePath, destinationPath, []string{"_dev", "build", ".git"}, []string{"^\\.DS_Store$", "^\\..*\\.swp$"})
2424
}
2525

2626
// CopyWithSkipped method copies files from the source to the destination, but skips selected directories, empty folders and selected hidden files.

0 commit comments

Comments
 (0)