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 90a9fda..9429ac8 100644
--- a/re.go
+++ b/re.go
@@ -7,7 +7,7 @@ import (
func re(s, r string) string {
// min: s//
- if len(r) < 3 || r[0] != 's' {
+ if len(s) < 3 {
return ""
}
z := strings.Split(r[2:], string(r[1]))