Skip to content

Commit 60684f0

Browse files
committed
linter: use verbatim strings with MustCompile to avoid double escaping
1 parent b884f29 commit 60684f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

properties.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ func MergeMapsOfProperties(target map[string]*Map, sources ...map[string]*Map) m
509509
// DeleteUnexpandedPropsFromString removes all the brace markers "{xxx}" that are not expanded
510510
// into a value using the Map.ExpandPropsInString() method.
511511
func DeleteUnexpandedPropsFromString(str string) string {
512-
rxp := regexp.MustCompile("\\{.+?\\}")
512+
rxp := regexp.MustCompile(`\{.+?\}`)
513513
return rxp.ReplaceAllString(str, "")
514514
}
515515

0 commit comments

Comments
 (0)