diff options
| author | Teddy Wing | 2014-11-14 23:27:37 -0500 |
|---|---|---|
| committer | Teddy Wing | 2014-11-14 23:27:37 -0500 |
| commit | 8c607c8561feb0948ae29329be8fa3043990d542 (patch) | |
| tree | 6c5d29e3306564e1d4f6f0b1bf9c696136b4258f /unxhtmlify.go | |
| parent | 3ace9ccd451ef34a429450b16f46cfd3e974b6cd (diff) | |
| download | unXHTMLify-8c607c8561feb0948ae29329be8fa3043990d542.tar.bz2 | |
Rename `unxhtmlify_line` -> `unxhtmlify_string`
The word "line" didn't really make sense since the function doesn't care
about lines. I started with that naming because it made sense in terms
of the implementation, or of the reading of a buffer and unxhtmlifying.
Diffstat (limited to 'unxhtmlify.go')
| -rw-r--r-- | unxhtmlify.go | 2 |
1 files changed, 1 insertions, 1 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, ">") } |
