summaryrefslogtreecommitdiff
path: root/re.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-12-26 05:03:32 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-12-26 05:03:32 +0100
commit5d506643a6b543d46d18f3ec832f84f094a4f438 (patch)
treef9488f7aa972267e15979975a5f0037e831ad8ac /re.go
parenta04048625848c4aeab33e3e2dce24e006ebe59e1 (diff)
Tweak
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]))