aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/disk_location_ec.go
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2021-02-18 14:05:28 +0800
committerbingoohuang <bingoo.huang@gmail.com>2021-02-18 14:05:28 +0800
commiteab6e31d34bb22beeb1ca416596c44b1590075c0 (patch)
tree5fba6e0c8a4a5a1cf54051fb8025948e20b54d42 /weed/storage/disk_location_ec.go
parent12a78335860c4b1e220748e4adc4097050af5272 (diff)
downloadseaweedfs-eab6e31d34bb22beeb1ca416596c44b1590075c0.tar.xz
seaweedfs-eab6e31d34bb22beeb1ca416596c44b1590075c0.zip
use backticks instead of double quotes to avoid escaped additionally in regex
Diffstat (limited to 'weed/storage/disk_location_ec.go')
-rw-r--r--weed/storage/disk_location_ec.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/disk_location_ec.go b/weed/storage/disk_location_ec.go
index d1237b40f..ff368c6fc 100644
--- a/weed/storage/disk_location_ec.go
+++ b/weed/storage/disk_location_ec.go
@@ -14,7 +14,7 @@ import (
)
var (
- re = regexp.MustCompile("\\.ec[0-9][0-9]")
+ re = regexp.MustCompile(`\.ec[0-9][0-9]`)
)
func (l *DiskLocation) FindEcVolume(vid needle.VolumeId) (*erasure_coding.EcVolume, bool) {