Skip to content

Commit

Permalink
Fixed -trimsuffix will introduce error on preholder string.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkdai committed Jun 5, 2015
1 parent 0740dd7 commit ad1725a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func main() {
*replacementPtr = ""
} else if *trimSuffixPtr != "" {
*matchPatternPtr = regexp.QuoteMeta(*trimSuffixPtr) + "$"
*replacementPtr = ""
}

if *matchPatternPtr == "" {
Expand Down

0 comments on commit ad1725a

Please sign in to comment.