aboutsummaryrefslogtreecommitdiffhomepage
path: root/replacer.go
diff options
context:
space:
mode:
Diffstat (limited to 'replacer.go')
-rw-r--r--replacer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/replacer.go b/replacer.go
index 5d33b7f18..046be867a 100644
--- a/replacer.go
+++ b/replacer.go
@@ -133,7 +133,7 @@ func (r *Replacer) replace(input, empty string,
treatUnknownAsEmpty, errOnEmpty, errOnUnknown bool,
f ReplacementFunc,
) (string, error) {
- if !strings.Contains(input, string(phOpen)) {
+ if !strings.Contains(input, string(phOpen)) && !strings.Contains(input, string(phClose)) {
return input, nil
}