summaryrefslogtreecommitdiff
path: root/re.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-04 15:27:29 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-04 15:27:29 +0100
commita351d7e4e17c19f2d1066a64058b0b902aa6191d (patch)
treed8595ffe95c5b770c5538dca446fd2ca0164c17a /re.go
parent0dadf9a9f911c4f885e1540bc164bb71860d0f79 (diff)
move recover into handler
Diffstat (limited to 're.go')
-rw-r--r--re.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/re.go b/re.go
index 9406b79..341488c 100644
--- a/re.go
+++ b/re.go
@@ -1,17 +1,11 @@
package main
import (
- "log"
"regexp"
"strings"
)
func re(s, r string, global bool) string {
- defer func() {
- if r := recover(); r != nil {
- log.Println("panic", r)
- }
- }()
// min: at least two separators
if len(s) < 2 {
return ""