summaryrefslogtreecommitdiff
path: root/re.go
diff options
context:
space:
mode:
Diffstat (limited to 're.go')
-rw-r--r--re.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.go b/re.go
index 341488c..d2461ab 100644
--- a/re.go
+++ b/re.go
@@ -7,7 +7,7 @@ import (
func re(s, r string, global bool) string {
// min: at least two separators
- if len(s) < 2 {
+ if len(r) < 2 {
return ""
}
z := strings.Split(r[1:], string(r[0]))