aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unxhtmlify.go2
-rw-r--r--unxhtmlify_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/unxhtmlify.go b/unxhtmlify.go
index 7013d74..50b4f5f 100644
--- a/unxhtmlify.go
+++ b/unxhtmlify.go
@@ -17,7 +17,7 @@ func main() {
}
}
-func unxhtmlify_line(s string) string {
+func unxhtmlify_string(s string) string {
re := regexp.MustCompile(" ?/>")
return re.ReplaceAllString(s, ">")
}
diff --git a/unxhtmlify_test.go b/unxhtmlify_test.go
index 9ac238d..7091a8e 100644
--- a/unxhtmlify_test.go
+++ b/unxhtmlify_test.go
@@ -2,7 +2,7 @@ package main
import "testing"
-func TestUnxhtmlifyLine(t *testing.T) {
+func TestUnxhtmlifyString(t *testing.T) {
var tests = []struct {
input, expected string
}{